then you'd need to write some tagger script. Inside an $if statement (match on e.g. compilation rg type?) you could use the $set function to set a tag.
KassOtsimine
...
kepstin
so something like $if($eq(%compilation%,1),$set(original_year,%__recording_firstreleasedate%)
where you can change 'original_year' to be whatever tag name you want to put it in
and i forgot to add the last closing )
rdswift
But remember that will change the value of original_year only for that track. There is currently no way to apply the change to all tracks on the release.
kepstin
well, for recording dates it makes sense to do it per recording :)
rdswift
Yup.
KassOtsimine
hmm
ok so my use case is thus: for releases with "one artist" (not compilation) i will want it it named as $artistname - $releasename/$tracknumber $tracktitle.tld with the date as whatever mb has for that loaded release (or whatever i override it in but that's irrelevant to a naming script iiuc.)
so far i am going itno options whenever i have a va release and jsut moving parens around using noop
which works, but is uneligant
(i also have the problem that with releases with more thna one disc i want $discnum-$tracknum) but i laso *don't* want to save that i nthe tags, i only want it for names. but in order to be able to tag for it, i must leave discnum intact and manually remove this tag
but yeah, you can wrap that all in an $if that checks the compilation tag value and picks between the different formats
KassOtsimine
ah i have a lot of $unset as a taggerscript
like $unset(totaltracks) (I'd liek to use it for totaldiscs too, but i can''t that becasue thne the $discnum has nothing to work with)
kepstin
it's all just $if($eq(%compilation%,1),<put compilation naming pattern here>,<put non-compilation naming pattern here>)
KassOtsimine
compilatio is what's set as being comp=1 thoguh, not from mb
(unless it's got that fro mmb)
but if i set something as comp=1
kepstin
the %% syntax refers to whatever you have set in variables/tags
KassOtsimine
.. right.. one problem is that i have "$unset(compilation)"
kepstin
so, what's the condition you want to use to choose between the two patterns, then?
KassOtsimine
because that some thinggs from mb are comp but i wouldn't use it.. maybe i should remove that
kepstin
you have to figure out a way to describe this condition that a computer can understand and can be determined from information in picard :)
KassOtsimine
the condition is.. things where the tag is thre in the file i load or that I set it myself
yea
rdswift
I suggest changing your tagging script to ```$set(_compilation,%compilation%)$unset(compilation)``` and then test the value of %_compilation% in your naming script.
kepstin
In current versions of picard, the file naming pattern can use tags loaded from a file or set manually (as long as you don't $unset() them of course)
(I prefer not to set things manually, of course, my file naming pattern is all automated so i don't forget something)
KassOtsimine
heh
i liek setting things manually so things aren't autmatically something i didn't wnated :D
for instance , a disngle artist comp i would not want this naming thing
kepstin
picard has a bunch of tags and hidden variables that provide enough info to figure that sort of thing out, if you're up to programming it.
the "compilation" tag is specifically only set on "Various Artist" albums, not multi-artist or single-artist compilations, fwiw
KassOtsimine
alright
so if i make a new taggerscript with thaat kepstin suggestion, shoudl it be before or after the other one with all the unsets?
kepstin
are you talking about the tagger script or the file naming pattern?
KassOtsimine
yes
taggerscript
kepstin
inside the tagger script, order of operations matters - you can't use %compilation% after you unset it for example :)
zer0bitz_ joined the channel
KassOtsimine
hm. it doesnt seem to work.. (set this new kepstin thing before the other one)
rdswift
That's why I suggested copying %compilation% to %_compilation%, unset %compilation%, and use %_compilation% in your file naming script test.
KassOtsimine
i pasted that to the unset taggerscrip. i'm not using dates for renaming
xplt has quit
zer0bitz has quit
kepstin
hmm, "__recording_firstreleasedate" isn't in the picard docs, where did you see that?
is there maybe a plugin that generates that?
oh, hmm, musicbrainz blog says added in 2.6
KassOtsimine
oh shi. i have 2.1
i have to update it
rdswift
Tags starting with an underscore will not be written to the files.
kepstin
i wish the variables weren't split up on multiple pages in the docs, it makes it hard to find things
i miss the big old list of everything on one page :(
note that current versions of picard support option profiles, that let you switch between different settings within one version of picard
KassOtsimine
yea i know
i havent played with that (yet)
kepstin
i haven't yet either, heh. looks pretty complicated.
MRiddickW has quit
rdswift
If you're wanting to install another version for testing or whatever, I suggest installing the portable version (which saves the config file in a subdirectory of where the program is executed). That allows you to make changes to the config without affecting your "main" installed version.
kepstin, it's actually pretty straightforward once you get used to the idea of settings stacks.
The next version of Picard (rc1 being released next week) will actually also allow you to backup your config file and restore from a backup. That will allow you another way of changing configurations.
kepstin
I might not actually need it, heh, the only thing i really change back and forth is the file naming pattern and there's a separate thing for that
rdswift
Yeah, the only thing that I haven't found a way to automate yet is changing my file naming script for releases tagged in Classical format (with composers as the track artists).
MRiddickW joined the channel
PelvicSorcery has quit
Cheezmo joined the channel
fhe has quit
v6lur joined the channel
ta264 has quit
MRiddickW has quit
KassOtsimine
ah! in taggerscript. is there a way to make it always replace some glyp by another glyp?
like i want hypen-minus isntead of hyphen
and jsut regular ' isntead of.. a thing i have to copy paste to find
v6lur has quit
kepstin
there's a plugin to do that, specifically
i forget what it's called, 'ascii punctuation' or something like that?
oh, it's not a plugin, it's just an option in the Metadata section, "Convert Unicode punctuation characters to ASCII"
(there's also a "Non-ASCII Equivalents" plugin which tries to do a bit fancier of a job if the built-in method doesn't do what you want)
i think that plugin also might remove accents, so that's probably not very good for non-english stuff
(you could edit the plugin to replace whatever sets of characters you like tho)
CatQuest
Metadata section, "Convert Unicode punctuation characters to ASCII" <<-- yea I don't want that, because it coverst things like fullwith characters or whatever too, i only want those two tings
i can't really edit plugins because I can't code at all. all these taggerscripts seem like hoodoo to me :(
and idunno what the ascii-fyer will do with æøå
and I don't mine emdash
and I don't mind emdash
or unicode fuckery
or ffing zalgo, it's those damn hyphen and uuhh right single quotationmark used instead of apostrophe or even modifyer letter apostophe
ʼ which atleast makes *sense* somewhat and doesn't also look like an acute ´
CatQuest, you can probably do what you want by using the $replace() function like $set(title,$replace(%title%,-,-))
KassOtsimine
a taggerscript right?
also i want it for title and releasetitle and artist name too
and for the apostrophes, it's a second line of $set(title,$replace(%title%,',’)) like right?
derwin: yea
>>> unidecode('kožušček')
'kozuscek'
that's exactly what I *don't* want :)
jesus2099: you had a windows tool that was an extended charmap sort of program exe, do you remember that? i'd like to get a hold of that again (unrelated to the current convo btw)