Releases: web-scrobbler/metadata-filter
Releases · web-scrobbler/metadata-filter
v0.4.2
Changed
- Moved back a filter rule to filter (HD)/(HQ) suffix
v1.0.0
Breaking changes
- Added support for filtering custom fields
Note that the magicall
field was removed. - Removed the default filter
You should construct the similar filter by yourself. - Rewritten code in TypeScript and updated module structure
Module import and usage (Click to expand)
/* Common JS */
const MetadataFilter = require('metadata-filter');
/* ES6 */
import * as MetadataFilter from 'metadata-filter';
// Use a function that creates a new filter object
const filter = MetadataFilter.createFilter(yourFilterSet);
// Use a function that returns a predefined filter
const spotifyFilter = MetadataFilter.getSpotifyFilter();
// Use a filter function
const filteredText = MetadataFilter.removeRemastered(yourInput);
You can also named imports as well:
// Import a function that creates a new filter object
import { createFilter } from 'metadata-filter';
const filter = createFilter(yourFilterSet);
// Import a function that returns a predefined filter
import { getSpotifyFilter } from 'metadata-filter';
const spotifyFilter = getSpotifyFilter();
// Import a filter function
import { removeRemastered } from 'metadata-filter';
const filteredText = removeRemastered(yourInput);
Added
- Added minified and ESM bundles
- Added support for filtering custom fields
Any field now can be passed in a filter set.
Added a new method to check if a field can be filtered.
Added a new method to get a list of fields can be filtered.
Note that the magicall
field was removed.
Changed
- Extended YouTube filter rules
Add rules for Spanish-related YouTube videos. - Removed the default filter
You should construct the similar filter by yourself. - Rewritten code in TypeScript
This brings more precise typings for TypeScript project usingmetadata-filter
. - Updated
replaceNbsp
function behavior
Now the functions replaces all non-breaking spaces in a given string. - Updated documentation
v0.4.1
Fixed
- Fixed YouTube filter rules
Fixed an issue where the filter rules removed trailing exclamation marks.
v0.4.0
Changed
- Updated documentation
Fixed
- Fixed YouTube filter rules
Fixed an issue where the filter rules could not clean "[whatever] + (whatever)" suffix.
Fixed an issue where the filter rules removed a "Live" word and everything after it from a string.
v0.3.0
Added
- Added a new case for "remastered" detection.
Added a rule to remove "Xxx - YYYY Remaster" based on common Spotify track titles.
v0.2.0
Added
- Added keywords
Changed
- Updated documentation
Fixed
- Fixed an issue where could be possible to pass an unknown field in a field set object
- Fixed an issue where could be possible to pass invalid filter functions in an array of filter functions
v0.1.0
Initial release.