Disc/Total Discs and Track/Total Tracks

[ http://forums.mp3tag.de/index.php?showtopic=16741 ]


Post #1

Don Strack (Dec 26 2012, 07:18)

I use MP3Tag and foobar2000 as a team. I wanted to have foobar2000 show the disc/total discs and track/total tracks. After much Googling and searching for scripts and script components in both the foobar2000 forums and the MP3Tag forums, I realized that I would have to manually set the actual total discs and actual total tracks.

In MP3Tag, in the Tag Panel, I created two new entries: Total Discs %TOTALDISCS%, and Total Tracks %TOTALTRACKS%.

image

image

Then I created a new Action called "Fix Total Discs Total Tracks.mta", with the following data:

[#0]
T=5
F=DISCNUMBER
1=$num(%DISCNUMBER%,1)/$num(%TOTALDISCS%,1)

[#1]
T=5
F=TRACK
1=$num(%TRACK%,1)/$num(%TOTALTRACKS%,1)

image

Usage:
In MP3Tag, select the files in a single folder/album; first one disc, then any additional discs. In the Tag Panel, based on information either from the discs or from other sources, set the total discs and total tracks for each disc selection. Then select the entire folder/album, and run the Action. Save the changes.

image

In foobar2000, create two new columns: Total Discs %TOTALDISCS% and Total Tracks %TOTALTRACKS%. Change the Track column to [%tracknumber%/%TOTALTRACKS%], and change the Disc column to [$num(%discnumber%,1)/$num(%TOTALDISCS%,1)]

image

--DS

This post has been edited by donstrack: Dec 26 2012, 09:38


Post #2

JJ Johnson (Dec 26 2012, 07:39)

Sounds like a foobar2000 question.

IMO, it somewhat defeats the purpose of tagging to put two different bits of data in one field. If your chosen application already displays %TRACK%/%TOTALTRACKS%, then I don't understand why you'd go out of your way to format the TRACK field with this data.

I've yet to come across an application that makes use of either TOTALTRACKS or TOTALDISCS. When it is displayed, most library managers compute the total tracks based on the number of tracks present in the library for an album. And while I've seen DISCNUMBER displayed and used, I'm not sure I've ever seen TOTALDISCS.

Also, FWIW, I've never encountered an application that needed zero-padded TRACK numbers. It's only in a file name where that's necessary to make file managers like Windows Explorer sort the tracks into the correct order. Applications tend to correctly store the track numbers as numeric, so don't need the leading zero.


Post #3

Don Strack (Dec 26 2012, 08:08)

QUOTE (JJ Johnson @ Dec 26 2012, 06:39)

>> Sounds like a foobar2000 question. <<

I agree, I'll post my question there.

QUOTE (JJ Johnson @ Dec 26 2012, 06:39)

>> IMO, it somewhat defeats the purpose of tagging to put two different bits of data in one field. If your chosen application already displays %TRACK%/%TOTALTRACKS%, then I don't understand why you'd go out of your way to format the TRACK field with this data. <<

I've yet to come across an application that makes use of either TOTALTRACKS or TOTALDISCS. When it is displayed, most library managers compute the total tracks based on the number of tracks present in the library for an album. And while I've seen DISCNUMBER displayed and used, I'm not sure I've ever seen TOTALDISCS.

I am using TOTALDISCS and TOTALTRACKS solely as a place to put the manually-input number. I'm displaying them in MP3Tag to validate the data.

QUOTE (JJ Johnson @ Dec 26 2012, 06:39)

>> Also, FWIW, I've never encountered an application that needed zero-padded TRACK numbers. It's only in a file name where that's necessary to make file managers like Windows Explorer sort the tracks into the correct order. Applications tend to correctly store the track numbers as numeric, so don't need the leading zero. <<

I agree. I fixed the action to show 1 digit, not two.

--DS


Post #4

JJ Johnson (Dec 26 2012, 08:30)

QUOTE (donstrack @ Dec 26 2012, 07:08)

>> I am using TOTALDISCS and TOTALTRACKS solely as a place to put the manually-input number. <<

Right. I understand that part. Some rippers (I believe dbpoweramp) can populate these fields for you, so it's not unusual to use them.

QUOTE (donstrack @ Dec 26 2012, 07:08)

>> I'm displaying them in MP3Tag to validate the data. <<

Not sure what you mean by 'validate'. In any case, you can easily display them without having to push this data into the TRACK and DISCNUMBER fields. Do you mean display them in Mp3tag on the right-hand side? (the columnar "file view")? If so, you can add these fields as columns. Right-click on the header row and select 'Customize columns...'.

###