Although the question is now several months old, I wish to chime in with
a way of obtaining track count in Squeezebox Server. I was searching for
the same information and I find the replies to be unsatisfactory.
For the sake of my solution I assume *ajs'* music files
are tagged with a track number and total track count. In MP3tag (Windows
program) this information is kept in a field referred to as TRACK. In
Squeezebox Server this field is referred to as TRACKNUM.
In Foobar2000, the information is available as two separate fields--NOT
like Squeezebox Server or Mp3tag--those programs force you to use a
combined track/count string as a single entity.
The tricky part about the above is that one field (however it's called)
contains _two_ pieces of information: track number and (optionally)
track count. By convention you enter track number followed by slash,
then track count. For example: 5/12
You might want to parse the "12" count from the rest of the above
string. One reason for doing so would be to format a custom display
using MusicInfoSCR or another display-changing plugin. There may be
other reasons to do this, but I can't think of any.
Using the -*Custom Scan*- plugin, set up a *Tag mapping* string. This
is located in the "Module Settings Custom Tag" portion of the Custom
Scan settings. For fun, we'll break the TRACKNUM tag previously
described into PART1 and PART2, even though you may only want PART2:
*PART2=TRACKNUM(exp=^.*/(.*)),PART1=TRACKNUM(exp=^([0-9]*))*
Place the above in the tag mapping field, save it, then perform a
custom scan.
- To use the resulting custom tags, go to the section title "Various
Settings" within Custom Scan settings. Pull down the drop menu located
under Title Formats.
- You should see CUSTOMSCAN_CUSTOMTAG_PART1 and
CUSTOMSCAN_CUSTOMTAG_PART2 listed among the choices. If you don't see
those choices, check your TRACKNUM formula for typos and be sure you
performed the scan. Expose the desired custom tag and click apply.
Repeat for other custom tags you wish to use.
- Once you've performed the scan and exposed
CUSTOMSCAN_CUSTOMTAG_PART2 as a valid Title format, you can go ahead
and use CUSTOMSCAN_CUSTOMTAG_PART2 to appear in a title format by
using it on the Interface tab.
- By the way, you may see extraneous title formats created by Custom
Scan--ignore those. Use CUSTOMSCAN_CUSTOMTAG_PART2 to create a custom
display.
Granted, that's a lot of work simply to extract a portion of the tag
for display purposes. If you're already using Custom Scan, it's not too
much extra work. ...If you aren't, well, maybe it's worth it.
My solution doesn't work if tag(s) mentioned above are not present. My
solution doesn't enumerate the tracks (for a CD) to obtain a count.
If you haven't already used Mp3tag for (Windows-based) track tagging,
be sure to give it a try. It has a track numbering wizard that
eliminates the tedium of manually entering track numbers and track
counts.
--
Danny8
------------------------------------------------------------------------
Danny8's Profile: http://forums.slimdevices.com/member.php?userid=27606
View this thread: http://forums.slimdevices.com/showthread.php?t=69543
_______________________________________________
ripping mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/ripping