More > JRiver Media Center 23 for Mac
Multiple Disc File Naming Expression
jeffcdo:
I have a simple filename rule for multiple disc sets:
[Disc #]-[Track #] - [Name]
..and another for single discs:
[Track #] - [Name]
..using an expression can I combine these into one rule that will automatically append the disc number to the beginning of the filename only if the total number of discs is greater than one?
RoderickGI:
File naming:
If(!isempty([Disc #], 1), [Disc #]-,)[Track #] - [Name]
Gives a name like "1-01 - The Weekend Has Landed.m4a" when the [Disc #] tag contains data.
Optional sub-directory naming:
[Album Artist (auto)]\[Album]\If(!isempty([Disc #], 1), Disc [Disc #],)\
Gives a sub-directory name like "(Multiple Artists)\Human Traffic Soundtrack\Disc 1\" when the [Disc #] tag contains data.
Same concept.
Reference: https://wiki.jriver.com/index.php/Expression_Language
jeffcdo:
My issue is that the Disc # isn't empty, it still contains a value of 1 for a single disc. Can this be modified to check if my Total Discs field is greater than 1?
RoderickGI:
Ah, I missed that bit. That is a whole lot harder, because MC works at the file level, not at the Disc or Album level. It may be possible, but I don't have time to tackle that at the moment.
However, I think there have been requests along those lines in the past. Use Google to search the forum and see if you can find threads on the topic.
RD James:
How's this?
--- Code: ---ListBuild(
1,
/ -/ ,
If(Compare([Total Discs], >, 1), [Disc #], ),
PadNumber([Track #], 2),
[Name],
)
--- End code ---
Navigation
[0] Message Index
[#] Next page
Go to full version