Skip to content

Releases: web-scrobbler/metadata-filter

v0.4.2

25 Nov 15:30
Compare
Choose a tag to compare

Changed

  • Moved back a filter rule to filter (HD)/(HQ) suffix

v1.0.0

20 Sep 06:35
Compare
Choose a tag to compare

Breaking changes

  • Added support for filtering custom fields
    Note that the magic all 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 magic all 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 using metadata-filter.
  • Updated replaceNbsp function behavior
    Now the functions replaces all non-breaking spaces in a given string.
  • Updated documentation

v0.4.1

16 May 12:20
Compare
Choose a tag to compare

Fixed

  • Fixed YouTube filter rules
    Fixed an issue where the filter rules removed trailing exclamation marks.

v0.4.0

08 May 18:14
Compare
Choose a tag to compare

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

14 Apr 12:09
Compare
Choose a tag to compare

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

06 Apr 09:49
Compare
Choose a tag to compare

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

29 Mar 01:24
Compare
Choose a tag to compare

Initial release.