Skip to main content

Metadata filters for scrobblers

Project description

metadata-filter

License: MIT

Cleaner metadata (e.g. artist, album, track titles) for scrobbling.

Install

pip install metadata-filter

Usage

from metadata_filter import *

artist = "Iron Maiden"
album = "Powerslave (2015 Remaster)"
track = "Aces High - 2015 Remaster"

rules = (
    REMASTERED_FILTER_RULES
    + SUFFIX_FILTER_RULES
    + VERSION_FILTER_RULES
    + ORIGIN_FILTER_RULES
    + FEATURE_FILTER_RULES
    + CLEAN_EXPLICIT_FILTER_RULES
    + LIVE_FILTER_RULES
    + TRIM_WHITESPACE_FILTER_RULES
)

track = apply_filters(rules, track)
album = apply_filters(rules, album)

print(f"{artist} - {album} - {track}")

# Prints:
# Iron Maiden - Powerslave - Aces High

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

metadata_filter-0.1.0.tar.gz (6.5 kB view hashes)

Uploaded source

Built Distribution

metadata_filter-0.1.0-py3-none-any.whl (7.4 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page