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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file metadata_filter-0.1.0.tar.gz.
File metadata
- Download URL: metadata_filter-0.1.0.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0984b9a7b700869dd0831f9b75ce350b32ac988ab4151ae183e6ee77439ada8
|
|
| MD5 |
b050f70aae477033bf2257fc99dc953b
|
|
| BLAKE2b-256 |
72e6227ea23364254833127151f55d2bb276b7daef5d4382bb7ce5304f2aa437
|
File details
Details for the file metadata_filter-0.1.0-py3-none-any.whl.
File metadata
- Download URL: metadata_filter-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e677f9cc077de94cf0ca9dcf62eaac39a627c6232671a625cdc85596e9f3ca03
|
|
| MD5 |
f41462d7756c9e8c4a5b047296669243
|
|
| BLAKE2b-256 |
3d3a901ab6db39916d6742604d8048ca48c32ba424ba5a2c5c488d6534bd6c1c
|