Music naming scheme

All about user-defined episode / movie / file name format expressions
Post Reply
User avatar
bonelifer
Power User
Posts: 81
Joined: 23 Mar 2013, 18:27

Music naming scheme

Post by bonelifer »

Current rename scheme:

Format: Select all

/media/william/NewData/Music/MP3-OLD/{albumartist}/{album}{media.'part/position_total' == null ? null : '/CD ' + media.'part/position'}/{media.'part/position_total' == null ? null : media.'part/position'}.{ pi.pad(2) } - {artist} - {t}

It currently is always this, even if there are no multiple cd's:

Code: Select all

ALBUMARTIST/ALBUM/CD 1/1.1 - ARTIST - TITLE
What I want:

Code: Select all

ALBUMARTIST/ALBUM/((if cd then "CD #") else NULL)/((if cd then "CD #. ") else NULL)TRACK# - ARTIST - TITLE
so:

Code: Select all

ALBUMARTIST/ALBUM/CD 2/2.1 - ARTIST - TITLE
or this if there is no second CD:

Code: Select all

ALBUMARTIST/ALBUM/1 - ARTIST - TITLE
User avatar
rednoah
The Source
Posts: 23002
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Music naming scheme

Post by rednoah »

Please paste the MediaInfo properties for the file at hand. Ideally one MediaInfo table for a sample file with CD numbers and another one without CD numbers so that we can compare and contrast.


:idea: If you get CD 1 then that means that the ID3 tags do contain a CD number, perhaps CD 1/1 but not undefined at the very least:

Groovy: Select all

'/CD ' + media.'part/position'

Code: Select all

CD 1
:idea: Please read the FAQ and How to Request Help.
Post Reply