Help - Search - Members - Calendar
Full Version: v0.9 RC discnumber to disc remapping
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Support - (fb2k)
windowshade
I have observed unexpected results with tagz in v0.9b/RC: variables with similar names get mixed up. Specifically, %discnumber% is displayed instead of %disc%. Consider the following example:

ALBUM = Anthology of American Folk Music
DISCNUMBER = 1
DISC = Ballads
tagz string (oversimplified for clarity): "%album% - Disc %discnumber%: %disc%"

As expected, v0.8.3 returns "Anthology of American Folk Music - Disc 1: Ballads". However, v0.9 RC returns "Anthology of American Folk Music - Disc 1: 1".

Also (and I hope this is related), if there is no %album artist% tag present, v0.9 returns the value for %artist% for the tagz string "%album artist%" instead of "?".

My personal solution to this problem is to avoid fancy tagging. Thanks for making a great program even better.

rdS



kjoonlee
Both of those symptoms are actually intended. For the first one, you can use DISCNAME instead of DISC if you want. For the second, you can use $meta(album artist).

http://wiki.hydrogenaudio.org/index.php?ti...ormat_Reference
Peter
Nothing unexpected about your results - discnumber/disc remapping is provided for backwards compatibility with old scripts that rely on %disc%, while official name for "number of disc in set" meta has been changed from "disc" to "discnumber".
windowshade
Thanks for the quick response! (And I'm sorry I called it a bug.) wink.gif
windowshade
QUOTE(kjoonlee @ Mar 2 2006, 11:24 AM)
For the second, you can use $meta(album artist).

Hey, thanks! Since $meta(disc) is not remapped, I can use it instead of %disc%--with no need for retagging.
CODE
[%album%][ '['['Disc '%discnumber%]
$if($and(%discnumber%,$meta(disc)),': ')
[$meta(disc)]']']

I guess I'm still on the steep part of the learning curve. rolleyes.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.