Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
MusicBrainz Picard: converts album date from yyyy-mm-dd to simply yyyy
PLUGIN_NAME = 'Simple date'
PLUGIN_AUTHOR = 'Piotr Kuczynski'
PLUGIN_DESCRIPTION = 'Simplify album date to contain only year.'
PLUGIN_VERSION = "0.1"
PLUGIN_API_VERSIONS = ["0.9.0", "0.10", "0.15", "0.16"]
from picard.metadata import register_album_metadata_processor
import re
def simple_date(tagger, metadata, release):
metadata["date"] = metadata["date"][:4]
register_album_metadata_processor(simple_date)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.