Help - Search - Members - Calendar
Full Version: quick trackinfomod question
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
damir
i format my track numbers like e.g. 1/12. track info mod always shows e.g. 1/0

here's my code

CODE
// If track is from an album:
$if(%album%,B66931from %album%
$if(%tracknumber%,
[B66931 Disc %disc% ]
B66931' (#'$num(%tracknumber%,1)B66931'/'$num(%album tracks%,1)B66931')'
)$char(10))


i'm guessing it's looking for a seperate id3 tag, but is there any way to get it to read the full track tag?
Ulquiorra
Tag your songs with the amount of songs that are in that song's album, with a tag called total_tracks or something.

$if(%total_tracks%,%tracknumber%'/'%total_tracks%,%tracknumber%)
JoyO
Number after slash is mapped to %totaltracks% so I would use $meta(tracknumber)/%totaltracks%

Note that $meta is there to avoid padding tracknumber with zero (they will be shown as they were typed - 1 or 01)

edit typos
damir
hmm, i'm really new to foobar so could you tell me exactly what i'd need to do to do that?

retagging all my 130GBs of mp3s is not something i'm willing to do
Ulquiorra
Then it's bad luck for you. It's simply the way it works. Select album, check amount of selected items in properties, enter the number in appropiate tag, and next.
wraithdu
If your mp3s are tagged like 1/12 in the TRACK field, then you don't have to do any retagging. foobar maps the values from TRACK like this -

1/12 becomes
1 -> %tracknumber%
12 -> %totaltracks%

These values are internal remappings just for foobar. The actual tag data is still TRACK=1/12

So just change the code as JoyO mentioned and you should be good.

EDIT: (ugh, board doesn't like those square characters)
Here -
CODE
$if(%album%,from %album%
$if(%tracknumber%,
[Disc %disc% ]
' [#'$tracknumber(1)'/'$num(%totaltracks%,1)')'
)$char(10))
damir
QUOTE(wraithdu @ Feb 17 2007, 16:54) *

If your mp3s are tagged like 1/12 in the TRACK field, then you don't have to do any retagging. foobar maps the values from TRACK like this -

1/12 becomes
1 -> %tracknumber%
12 -> %totaltracks%

These values are internal remappings just for foobar. The actual tag data is still TRACK=1/12

So just change the code as JoyO mentioned and you should be good.

EDIT: (ugh, board doesn't like those square characters)
Here -
CODE
$if(%album%,from %album%
$if(%tracknumber%,
[Disc %disc% ]
' [#'$tracknumber(1)'/'$num(%totaltracks%,1)')'
)$char(10))


thanks, that worked perfectly :>
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.