[Logo] Jaikoz and SongKong Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Help with naming mullti CD collections  XML
Forum Index -> SongKong Questions
Author Message
sic79



Joined: 12/11/2019 06:42:41
Messages: 5
Offline

Hi,

I want to sort all my multiCD´s like this:
Artist/year album *CD extension/101. Artist - Song.ext

Heres an example from my archive with a 2CD album:
Takida/2012 A Lesson Learned the Best of 2CD FLAC/105. tAKiDA - Was It I.flac
Takida/2012 A Lesson Learned the Best of 2CD FLAC/202. tAKiDA - Was It I (Boxroom Version).flac

So it would be nice if song numbering always bagin at "101." on first track on CD1 and "201." on CD2 and so on, is this doable automatic?
paultaylor

Pro
[Avatar]

Joined: 21/08/2006 09:21:27
Messages: 7967
Online

In Preferences try creating a rename mask containing the following

Code:
 ifnotempty(albumartist,'/')
 + ifnotempty(year,' ')
 + ifnotempty(album,' ')
 + ifnotempty(audioformat.toUpperCase(),'/')
 + ifnotempty(discno,'')
 + ifnotempty(pad(trackno,2),'. ')
 + ifnotempty(artist,' - ')
 + title
 


For the test data this gives

U2/1980 Boy WAV/102. U2 - Twilight.wav

thanks Paul (Administrator)
sic79



Joined: 12/11/2019 06:42:41
Messages: 5
Offline

paultaylor wrote:
In Preferences try creating a rename mask containing the following

Code:
 ifnotempty(albumartist,'/')
 + ifnotempty(year,' ')
 + ifnotempty(album,' ')
 + ifnotempty(audioformat.toUpperCase(),'/')
 + ifnotempty(discno,'')
 + ifnotempty(pad(trackno,2),'. ')
 + ifnotempty(artist,' - ')
 + title
 


For the test data this gives

U2/1980 Boy WAV/102. U2 - Twilight.wav 


Nice, It seems to do almost what i want. I still miss the CD count in album name, for example 2CD, 3CD and so on like in my example in the first post. Is that possible?
paultaylor

Pro
[Avatar]

Joined: 21/08/2006 09:21:27
Messages: 7967
Online

I didn't quite understand that bit before, okay here you go

Code:
 ifnotempty(albumartist,'/')
 + ifnotempty(year,' ')
 + ifnotempty(album,' ')
 + ifnotempty(disctotal,'CD ')
 + ifnotempty(audioformat.toUpperCase(),'/')
 + ifnotempty(discno,'')
 + ifnotempty(pad(trackno,2),'. ')
 + ifnotempty(artist,' - ')
 + title
 


Perhaps the syntax is slightly harder then some alternatives, but because you have access to full Javascript expressions plus access to all the metadata there is little you cannot do when it comes to rename masks.

thanks Paul (Administrator)
sic79



Joined: 12/11/2019 06:42:41
Messages: 5
Offline

paultaylor wrote:
I didn't quite understand that bit before, okay here you go

Code:
 ifnotempty(albumartist,'/')
 + ifnotempty(year,' ')
 + ifnotempty(album,' ')
 + ifnotempty(disctotal,'CD ')
 + ifnotempty(audioformat.toUpperCase(),'/')
 + ifnotempty(discno,'')
 + ifnotempty(pad(trackno,2),'. ')
 + ifnotempty(artist,' - ')
 + title
 


Perhaps the syntax is slightly harder then some alternatives, but because you have access to full Javascript expressions plus access to all the metadata there is little you cannot do when it comes to rename masks. 


Thanks, that did exactly what I wanted
sic79



Joined: 12/11/2019 06:42:41
Messages: 5
Offline

paultaylor wrote:
I didn't quite understand that bit before, okay here you go

Code:
 ifnotempty(albumartist,'/')
 + ifnotempty(year,' ')
 + ifnotempty(album,' ')
 + ifnotempty(disctotal,'CD ')
 + ifnotempty(audioformat.toUpperCase(),'/')
 + ifnotempty(discno,'')
 + ifnotempty(pad(trackno,2),'. ')
 + ifnotempty(artist,' - ')
 + title
 


Perhaps the syntax is slightly harder then some alternatives, but because you have access to full Javascript expressions plus access to all the metadata there is little you cannot do when it comes to rename masks. 


I would like to make the renaming a little smarter, lets say if "disctotal" is only 1 it would do a certain renaming or if it is 2 or higher another.. Is that possible?
paultaylor

Pro
[Avatar]

Joined: 21/08/2006 09:21:27
Messages: 7967
Online

Yes, can do something like

Code:
 if(disctotal==1)
 {
  ifnotempty(albumartist,'/')
  + ifnotempty(year,' ')
  + ifnotempty(album,' ')
  + ifnotempty(audioformat.toUpperCase(),'/')
  + ifnotempty(discno,'')
  + ifnotempty(pad(trackno,2),'. ')
  + ifnotempty(artist,' - ')
  + title
 }
 else
 {
  ifnotempty(albumartist,'/')
  + ifnotempty(year,' ')
  + ifnotempty(album,' ')
  + ifnotempty(disctotal,'CD ')
  + ifnotempty(audioformat.toUpperCase(),'/')
  + ifnotempty(discno,'')
  + ifnotempty(pad(trackno,2),'. ')
  + ifnotempty(artist,' - ')
  + title
 
 }
 

thanks Paul (Administrator)
sic79



Joined: 12/11/2019 06:42:41
Messages: 5
Offline

paultaylor wrote:
Yes, can do something like

Code:
 if(disctotal==1)
 {
  ifnotempty(albumartist,'/')
  + ifnotempty(year,' ')
  + ifnotempty(album,' ')
  + ifnotempty(audioformat.toUpperCase(),'/')
  + ifnotempty(discno,'')
  + ifnotempty(pad(trackno,2),'. ')
  + ifnotempty(artist,' - ')
  + title
 }
 else
 {
  ifnotempty(albumartist,'/')
  + ifnotempty(year,' ')
  + ifnotempty(album,' ')
  + ifnotempty(disctotal,'CD ')
  + ifnotempty(audioformat.toUpperCase(),'/')
  + ifnotempty(discno,'')
  + ifnotempty(pad(trackno,2),'. ')
  + ifnotempty(artist,' - ')
  + title
 
 }
 
 


Wow, great. SongKong is indeed very flexible and powerful. Thanks for the help, much appreciated.
 
Forum Index -> SongKong Questions
Go to:   
Powered by JForum 2.1.6 © JForum Team