Skip to content

Instantly share code, notes, and snippets.

@Filirom1
Created January 17, 2015 10:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Filirom1/40dd224c76105f32a122 to your computer and use it in GitHub Desktop.
Save Filirom1/40dd224c76105f32a122 to your computer and use it in GitHub Desktop.
MusicBrainz Picard Plugin that force Composer to be Album Artist
PLUGIN_NAME = 'Composer becomes Album Artist'
PLUGIN_AUTHOR = 'Romain Philibert'
PLUGIN_DESCRIPTION = '''Set composer value to album artist.'''
PLUGIN_VERSION = "0.1"
PLUGIN_API_VERSIONS = ["0.15"]
from picard.metadata import register_album_metadata_processor
import re
def set_composer(tagger, metadata, release):
artist = metadata["albumartist"] or metadata["artist"]
metadata["composer"] = artist
register_album_metadata_processor(set_composer)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment