$if($eq(%releasetype%,remix), $set(_testartist,%albumartist%)) # true, the results on if() would actually be backwards of the expected
# So, since eq() returns nothing if they doesn't match, and ne() returns # backwards, but if() doesn't test for true, it tests for *anything*. # Testing for eq(%_sorter%,Music) rather than ne(%_sorter%,Music) seems $if($eq(%albumartist%,Lerner & Loewe),$set(albumartistsort,Loewe\, Frederick)) $if($eq(%albumartist%,Kander & Ebb),$set(albumartistsort,Kander\, John)) $if($eq(%albumartist%,Gilbert & Sullivan),$set(albumartistsort,Sullivan\, Sir Arthur)) $if($eq(%albumartist%,Richard Rodgers & Lorenz Hart),$set(albumartistsort,Rodgers\, Richard)) $if($eq(%albumartist%,Richard Rodgers & Oscar Hammerstein II),$set(albumartistsort,Rodgers\, Richard)) $if($eq(%artist%,Lerner & Loewe),$set(artistsort,Loewe\, Frederick)) $if($eq(%artist%,Kander & Ebb),$set(artistsort,Kander\, John)) $if($eq(%artist%,Gilbert & Sullivan),$set(artistsort,Sullivan\, Sir Arthur)) $if($eq(%artist%,Richard Rodgers & Lorenz Hart),$set(artistsort,Rodgers\, Richard))
$if($eq(%artist%,Richard Rodgers & Oscar Hammerstein II),$set(artistsort,Rodgers\, Richard)) $if(%musicip_puid%,PUID,$if($lt(%durationlocal%,15),no PUID short,no PUID))/$if($eq(%_quarantine%,%_true%),Quarantine/)%_path%$if(%discsubtitle%,/Disc %discnumber%: %discsubtitle%)$if(%bonusdisctitle%,/bonus disc: %bonusdisctitle%)/$if(%discnumber%, %discnumber%-)$if(%bonusdisc%, B-)%_filename% I also add several taggerscript variables and additional $ functions (see and ). _re_slashes = re.compile(r'', re.UNICODE)ĭef make_short_filename(prefix, filename, max_path_length=3000, max_length=1000,
Note: I use a slightly modified Picard, to add duration support (see ), slight source code changes to allow for longer pathnames and filenames (more to linux limits than the default, which uses Windows limits) and to remove the sanitization of slashes in %variables%: The (new) Insanely Long PicardQT File Naming String