Page 1 of 1

Music naming scheme

Posted: 21 Jan 2024, 00:02
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

Re: Music naming scheme

Posted: 21 Jan 2024, 12:15
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