Skip to content

Instantly share code, notes, and snippets.

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_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]
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.