Metadata filters for scrobblers
Project description
metadata-filter
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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for metadata_filter-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e677f9cc077de94cf0ca9dcf62eaac39a627c6232671a625cdc85596e9f3ca03 |
|
MD5 | f41462d7756c9e8c4a5b047296669243 |
|
BLAKE2b-256 | 3d3a901ab6db39916d6742604d8048ca48c32ba424ba5a2c5c488d6534bd6c1c |