Hi, i have a script to make the writer value show on the composer field ($copymerge(composer,writer)
)
The thing is that when there are composers already in the file, it repeats the names:
But it’s not actually repeating them, it’s generating ONE value from the composer field, and adding the ones on the writer tag:
I tried using $unset(composer)
(which I though would clear the field) and then run the copymerge to overwrite it, but it didn’t work.
Is there a way to tell picard to overwrite “composer” ONLY if “writer” exists?
Or to clear “composer” and then copy “writer” ONLY if “writer” exists?
Thanks!!
Yes! It’s been doing this to me for a year and I just keep ignoring it and manually fixing in Picard. I’m doing the following and getting the same issue:
$copymerge(composer,writer)
$copymerge(composer,lyricist)
$unset(writer)
$unset(lyricist)
$set(composer,%composer%)
Apple Music/iTunes only recognizes composer for all writers.
Anyone with a fix?
It appears that somehow the composer
tag has been flattened (no longer a multi-value tag) prior to the $copymerge()
function being applied. Before performing the $copymerge()
try putting $setmulti(composer,%composer%)
and see if that helps. You may also need to add $setmulti(lyricist,%lyricist%)
and $setmulti(writer,%writer%)
before $copymerge()
as well if those tags have also been flattened.
The $copymerge()
function will automatically remove any duplicates.
4 Likes