Trying to follow iTunes file naming conventions

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Trying to follow iTunes file naming conventions

Re: Trying to follow iTunes file naming conventions

by McoreD » Tue Nov 24, 2009 7:31 pm

nohitter151 wrote:
McoreD wrote:
So basically, I do not want Disc Count in single-disc albums and I want Disc Count in multi-disc albums. I was wondering how can I achieve this?
Since MM doesn't store any information about total disc number there isn't a single mask that can achieve this.

This is about as close as you can come, assuming that for single disc albums you don't have any value stored for disc number.

Code: Select all

$If(<Disc#>,<Disc#>-,)<Track#:2> <Title>
Thanks for the quick reply nohitter151. The situation is that I do have the Disc Number stored as standard for single-disc albums which is going to break this. I will have another go when MM reaches version 4 may be?

Thanks, McoreD.

Re: Trying to follow iTunes file naming conventions

by nohitter151 » Tue Nov 24, 2009 7:16 pm

McoreD wrote:
So basically, I do not want Disc Count in single-disc albums and I want Disc Count in multi-disc albums. I was wondering how can I achieve this?
Since MM doesn't store any information about total disc number there isn't a single mask that can achieve this.

This is about as close as you can come, assuming that for single disc albums you don't have any value stored for disc number.

Code: Select all

$If(<Disc#>,<Disc#>-,)<Track#:2> <Title>

Re: Trying to follow iTunes file naming conventions

by McoreD » Tue Nov 24, 2009 7:08 pm

Hi All,

I am having a 3rd go at this using the recently released MM 3.2 - very impressive enhancements, good work!

Just to recap the discussion above, let me summarize the iTunes file naming behavior for single-disc and multi-disc albums. This is exactly what I want to achieve using MM so I can replace iTunes.

For single-disc albums:

%TrackNumber% %Name%.mp3
e.g. 03 Rivers of Babylon.mp3 (Note: the files do not have disc number)

For multi-disc albums:

%DiscNumber%-%TrackNumber% %Name%.mp3
e.g.
1-03 Rivers of Babylon.mp3 (for tracks in disc 1)
2-07 Belfast.mp3 (for tracks in disc 2)

So basically, I do not want Disc Count in single-disc albums and I want Disc Count in multi-disc albums. I was wondering how can I achieve this?

Thanks,
McoreD

Re: Trying to follow iTunes file naming conventions

by nohitter151 » Mon Dec 08, 2008 10:49 pm

McoreD wrote:Guys,

Wow, so there is no way to expose the DiscCount value lets say in TPOS for MP3.
TPOS
The 'Part of a set' frame is a numeric string that describes which
part of a set the audio came from. This frame is used if the source
described in the "TALB" frame is divided into several mediums, e.g. a
double CD. The value MAY be extended with a "/" character and a
numeric string containing the total number of parts in the set. E.g.
"1/2".
That makes it impossible to achieve the above task through a formatting code.

All I wanted was

%TrackNumber% %Name%.mp3 for single disc albums
%DiscNumber%-%TrackNumber% %Name%.mp3 for multi disc albums
Right, MM doesn't read any total disc field (or total track, for that matter).

Re: Trying to follow iTunes file naming conventions

by McoreD » Mon Dec 08, 2008 10:48 pm

Guys,

Wow, so there is no way to expose the DiscCount value lets say in TPOS for MP3.
TPOS
The 'Part of a set' frame is a numeric string that describes which
part of a set the audio came from. This frame is used if the source
described in the "TALB" frame is divided into several mediums, e.g. a
double CD. The value MAY be extended with a "/" character and a
numeric string containing the total number of parts in the set. E.g.
"1/2".
That makes it impossible to achieve the above task through a formatting code.

All I wanted was

%TrackNumber% %Name%.mp3 for single disc albums
%DiscNumber%-%TrackNumber% %Name%.mp3 for multi disc albums

Re: Trying to follow iTunes file naming conventions

by Lowlander » Mon Dec 08, 2008 7:51 pm

nohitter151 wrote:Since there is no 'Disc count' field in MM, there is no <DiscCount> mask.
Which means that the suggestions above work as long as the disc# field is empty on single disc albums.

Re: Trying to follow iTunes file naming conventions

by nohitter151 » Mon Dec 08, 2008 7:46 pm

Since there is no 'Disc count' field in MM, there is no <DiscCount> mask.

Re: Trying to follow iTunes file naming conventions

by Lowlander » Mon Dec 08, 2008 7:31 pm

If you always want disc# if it has a value you can use

Code: Select all

$If(<Disc#>,<Disc#>-,)<Track#:2> <Title>
instead of

Code: Select all

$If(<Disc#>>1,<Disc#>-<Track#:2> <Title>,<Track#:2> <Title>)

Re: Trying to follow iTunes file naming conventions

by McoreD » Mon Dec 08, 2008 6:16 pm

nohitter,

Sorry I gave the wrong reason for why need DiscCount. Consider the following code:

Code: Select all

    .\$If(<Disc#>>1,<Disc#>-<Track#:2> <Title>,<Track#:2> <Title>)
or even

Code: Select all

    .\$If(<Disc#>>1,<Disc#:2>-<Track#:2> <Title>,<Track#:2> <Title>)
The above will not generate file names like this:

1-03 Rivers of Babylon.mp3

It will only include DiscNumber if the DiscNumber is greater than 1. So for a two-disc album, you will have file names like this:

For disc 1:

03 Rivers of Babylon.mp3

For disc 2:

2-07 Belfast.mp3

In iTunes, if the DiscCount is greater than 1, i.e. a multi-disc album, then all the tracks in the album will have the DiscCount:

Disc 1:

1-03 Rivers of Babylon.mp3

Disc 2:

2-07 Belfast.mp3

If the DiscCount is 1, i.e. single disc album, then all the tracks will have the following format:

03 Rivers of Babylon.mp3

So I was wondering how do we use DiscCount to implement this.

Thanks,
McoreD

Re: Trying to follow iTunes file naming conventions

by nohitter151 » Mon Dec 08, 2008 11:24 am

McoreD wrote:nohitter151,

Thank you! That seems very logical.

Is there <DiscCount> ?

Looks like what's most appropriate is

Code: Select all

$If(<DiscCount>>1,<Disc#:2>-<Track#:2> - <Artist> - <Title>,<Track#:2> - <Artist> - <Title>)
The reason why I say DiscCount is what we need is because in iTunes

For a 2 disc album, the file name would be something like 1-03 Rivers of Babylon.mp3 not 01-03 Rivers of Babylon.mp3
Just change it to

Code: Select all

.\$If(<Disc#>>1,<Disc#>-<Track#:2> <Title>,<Track#:2> <Title>)
McoreD wrote: Edit:

Looking at http://www.mediamonkey.com/sw/webhelp/f ... ormats.htm I was wondering how to retrieve the "type" or in other words the extension of the audio file, mp3 or flac.

So I could do something like this:

Code: Select all

.\$If(<Type>=="flac",$If(<Disc#>>1,<Disc#:2>-<Track#:2> - <Artist> - <Title>,<Track#:2> - <Artist> - <Title>),$If(<Disc#>>1,<Disc#:2>-<Track#:2> <Title>,<Track#:2> <Title>))
Thanks,
McoreD
Ok, you can retrieve the type of file, but what you want to do with it? You can use <Extension>, but then what, store in "FLAC" or "mp3" folders?

Re: Trying to follow iTunes file naming conventions

by McoreD » Mon Dec 08, 2008 4:32 am

nohitter151,

Thank you! That seems very logical.

Is there <DiscCount> ?

Looks like what's most appropriate is

Code: Select all

$If(<DiscCount>>1,<Disc#:2>-<Track#:2> - <Artist> - <Title>,<Track#:2> - <Artist> - <Title>)
The reason why I say DiscCount is what we need is because in iTunes

For a 2 disc album, the file name would be something like 1-03 Rivers of Babylon.mp3 not 01-03 Rivers of Babylon.mp3


Edit:

Looking at http://www.mediamonkey.com/sw/webhelp/f ... ormats.htm I was wondering how to retrieve the "type" or in other words the extension of the audio file, mp3 or flac.

So I could do something like this:

Code: Select all

.\$If(<Type>=="flac",$If(<Disc#>>1,<Disc#:2>-<Track#:2> - <Artist> - <Title>,<Track#:2> - <Artist> - <Title>),$If(<Disc#>>1,<Disc#:2>-<Track#:2> <Title>,<Track#:2> <Title>))
Thanks,
McoreD

Re: Trying to follow iTunes file naming conventions

by nohitter151 » Sun Dec 07, 2008 10:22 am

Probably something like this:

Code: Select all

.\$If(<Disc#>>1,<Disc#:2>-<Track#:2> <Title>,<Track#:2> <Title>)

Trying to follow iTunes file naming conventions

by McoreD » Sun Dec 07, 2008 9:40 am

Hi All,

I am having my second go at MediaMonkey. My goal is to enable MM3's auto-organizing features so that it works similar to iTunes "Organize Music folder" feature. By doing this I also want to maintain compatibility with iTunes so that both MM3 and iTunes organize the files identically. This time I am trying to be more careful before I end up messing things up.

iTunes replace any illegal character with a low line aka underscore. I have done the appropriate changes in the ini file to make this happen the same way:

Code: Select all

[FilenameMappings]
3A=5F
2A=5F
3F=
3E=5F
3C=5F
22=27
7C=5F
2F=5F
0D0A=
19=
For multi-disc albums, iTunes follows file name format:

%DiscNumber%-%TrackNumber% %Name%.mp3

For single-disc albums, iTunes follows the file name format:

TrackNumber% %Name%.mp3

I was wondering how to configure this in MM3. :)

Thanks,
McoreD

Top