Search code examples
pythonmp3musicbrainz

Howto Use musicbrainz performer tag


I am working with MusicBrainz Picard Version: 1.2. If a particular track has vocals performer I would like to copy that field to the artist tag.

e.g. 

[https://musicbrainz.org/release/b251f5c0-4a41-40be-9d0d-68fdcecac317][1]

Track 1 "Khallas" I would like to copy 
vocals:
    Asha Bhosle, Sapna Awasthi, Sudesh Bhonsle 
To the artist tag.

what is the best way to achive this python plugin or tagger script. how should I access the vocals tag in tagger script


Solution

  • You'll have to use both the copymerge and performer scripting functions to achieve that. Under Options -> Options -> Advanced -> Scripting, insert

    $set(_performers,$performer(vocal))
    $copymerge(artist,_performers)
    

    This will first extract all vocal performers (including choir vocals, spoken vocals, etc.) to a tag called _performers (this one will not get written to your files because its name is prefixed with an underscore) and then append all values in that tag to the regular artist tag.