|
Post by calestyo on Nov 21, 2021 17:26:33 GMT -5
Hey.
When having a album with multiple mediums (e.g. CD1, CD2, etc.), gmmp displays the tracks like this:
1. ... 2. ... 3. ... ... 1. ... 2. ... 3. ...
It would be nice if it could use the meta-data (if available) to display the medium-#, like this: 1-1. ... 1-2. ... 1-3. ... ... 2-1. ... 2-2. ... 2-3. ...
Or maybe in some other or a configurable format.
Cheers, Chris.
|
|
|
Post by GoneMAD on Nov 21, 2021 18:07:05 GMT -5
|
|
|
Post by calestyo on Nov 22, 2021 22:29:36 GMT -5
That's really neat. I'm trying to do this: ["<weight=0.8><align=left><typeface=sans-serif><size=14>$if(%dn%,%dn%-)%tn%. %tr%", "<weight=0.2><align=right><typeface=sans-serif><size=14>%du%"]
But for some reason I don't get the hyphen, however when I use if(%dn%,-%dn%), I get the hyphen, but obviously in some undesired order (i.e. -<discno><trackno>.
Is there anything I miss?
Thanks
|
|
|
Post by GoneMAD on Nov 22, 2021 23:29:10 GMT -5
k looks like %dn%- gets treated as a number for some reason (and removed because 1- == 1). If you put a space between dn and - it will work:
["<weight=0.8><align=left><typeface=sans-serif><size=14>$if(%dn%,%dn% -) %tn%. %tr%", "<weight=0.2><align=right><typeface=sans-serif><size=14>%du%"],
it looks like i will have to put a literal variable for minus in a future update %minus% or %dash% similar to how there is one for %period% or %space%. Either that or something like $ascii(code) / $utf(code) where it would any valid ascii/utf character
edit: as a work around.. these 2 seem to work correctly
["<weight=0.8><align=left><typeface=sans-serif><size=14>$if(%dn%,$replace(%dn%%space%,%space%,-))%tn%. %tr%", "<weight=0.2><align=right><typeface=sans-serif><size=14>%du%"]
["<weight=0.8><align=left><typeface=sans-serif><size=14>$if(%dn%,$pad(%dn%,2,-))%tn%. %tr%", "<weight=0.2><align=right><typeface=sans-serif><size=14>%du%"]
pad is going to perform better but will break if you have a disc number greater than 9
|
|
|
Post by calestyo on Nov 28, 2021 11:37:40 GMT -5
Interestingly, it also doesn't work with – (U+2013 EN DASH) which is IMO kinda strange...
I think the $utf(code) would make much more sense... just don't name it that way, cause UTF(7,8,16,32....) is just an encoding of Unicode... maybe $u() or so.
|
|
|
Post by GoneMAD on Nov 28, 2021 14:30:51 GMT -5
i mean the function name is the not the important part
|
|