$set(MUSICBRAINZIDS,TRACK_%musicbrainz_trackid%_ART_%musicbrainz_artistid%_REC_%musicbrainz_recordingid%_REL_%musicbrainz_albumid%_RELART_%musicbrainz_albumartistid%_RELGRP_%musicbrainz_releasegroupid%_WORK_%musicbrainz_workid%_RELTYPE_%releasetype%)
label: | formula: |
MusicBrainz Track Id | $Split(<MusicBrainz IDs>,"_",2) |
MusicBrainz Artist Id | $Split(<MusicBrainz IDs>,"_",4) |
MusicBrainz Recording Id | $Split(<MusicBrainz IDs>,"_",6) |
MusicBrainz Release Id | $Split(<MusicBrainz IDs>,"_",8) |
MusicBrainz Release Artist Id | $Split(<MusicBrainz IDs>,"_",10) |
MusicBrainz Release Group Id | $Split(<MusicBrainz IDs>,"_",12) |
MusicBrainz Work Id | $Split(<MusicBrainz IDs>,"_",14) |
MusicBrainz Release Type | $Split(<MusicBrainz IDs>,"_",16) |
https://musicbrainz.org/track/<MusicBrainz Track Id>
https://musicbrainz.org/artist/<MusicBrainz Artist Id>
https://musicbrainz.org/recording/<MusicBrainz Recording Id>
https://musicbrainz.org/release/<MusicBrainz Release Id>
https://musicbrainz.org/artist/<MusicBrainz Release Artist Id>
https://musicbrainz.org/release-group/<MusicBrainz Release Group Id>
https://musicbrainz.org/work/<MusicBrainz Work Id>
Why do the bottom 4 virtual tag examples use <> instead of []?
I tried making the release type tag, but the formula is giving me a parse error @ >,"_",16)You probably made a typo somewhere. Perhaps in the custom tag?
<...> is how other tags are specified in a virtual tag. I don't understand why you think only the last 4 have them? They all do.
label: formula:MusicBrainz Track Id $Split([MusicBrainz IDs],"_",2) MusicBrainz Artist Id $Split([MusicBrainz IDs],"_",4) MusicBrainz Recording Id $Split([MusicBrainz IDs],"_",6) MusicBrainz Release Id $Split([MusicBrainz IDs],"_",8)
In your post, the first four use square brackets:Ah, I was looking at the formulas below those in the code fields.
Why do the bottom 4 virtual tag examples use <> instead of []?<...> is how other tags are specified in a virtual tag. I don't understand why you think only the last 4 have them? They all do.
I made typos there. Corrected that now, thanks for noticing and reporting.
QuoteI tried making the release type tag, but the formula is giving me a parse error @ >,"_",16)You probably made a typo somewhere. Perhaps in the custom tag?
One weird thing I noticed last night with Picard is that sometimes after writing the MUSICBRAINZIDS to a group of files, when I did a refresh Picard would want to write the tag again so I end up with both a "MUSICBRAINZIDS" and a "musicbrainzids" tagThat's probably because Picard is not very clever where it concerns higher/lower case characters in tags.
Since I'm using your virtual tags, the default musicbrainz_* tags are pretty much redundant. Is there anyway to stop Picard from writing them in the first place - I tried using $unset, but it still added them (I guess it isn't an issue having them, just wondering)You could use the $delete function at the end of your script for that.
In the interest of actually trying to learn something…I'm getting the same error and I copied the updated tags. Still don't know what's wrong
Why do the bottom 4 virtual tag examples use <> instead of []?
I tried making the release type tag, but the formula is giving me a parse error @ >,"_",16)