[Logo] Jaikoz and SongKong Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Multidisk  XML
Forum Index -> SongKong Questions
Author Message
markhaines



Joined: 10/02/2014 06:47:55
Messages: 2
Offline

Hi, I've just started using SongKong and *love* it - it's ripped through 5k odd tracks in a morning already!

I'm trying to sort out the naming of multidisc albums but am struggling with the syntax. Basically, I'd like both disks to sit in the same folder and have the disk number pre-pended (unpadded) to the track number. For example:

Disk 1:
Wu Tang\Wu Tang Forever\101-Wu Tang-Wu Tang Forever-BlahBlah.mp3
Wu Tang\Wu Tang Forever\102-Wu Tang-Wu Tang Forever-BlahBlah.mp3

Disk 2:
Wu Tang\Wu Tang Forever\201-Wu Tang-Wu Tang Forever-BlahBlah.mp3
Wu Tang\Wu Tang Forever\202-Wu Tang-Wu Tang Forever-BlahBlah.mp3

I tried this but it doesn't work, I get 'undefined' error in the affected tracks:
Code:
 ifnotempty2(albumartist,"Various Artists",'/')
 + ifnotempty(album,'/')
 + ifmultidisc(ifnotempty(discno))
 + ifnotempty(pad(track,2),'-')
 + ifnotempty(album,'-')
 + ifnotempty(artist,'-')
 + title
 

If you can point me in the right direction that would be great!

Cheers

Mark
paultaylor

Pro
[Avatar]

Joined: 21/08/2006 09:21:27
Messages: 7208
Offline

Hi Mark the reason you are getting undefined is because ifnotempty takes two values, the value to output and a value to separate this field from the next field if not empty. Because you dont want anything to seperate the discno from the trackno simply adding an empty space parameter

+ ifmultidisc(ifnotempty(discno,''))

would fix the undefined value as follows

Code:
  ifnotempty2(albumartist,"Various Artists",'/')
  + ifnotempty(album,'/')
  + ifmultidisc(ifnotempty(discno,''))
  + ifnotempty(pad(track,2),'-')
  + ifnotempty(album,'-')
  + ifnotempty(artist,'-')
  + title
 


thanks Paul (Administrator)
markhaines



Joined: 10/02/2014 06:47:55
Messages: 2
Offline

Brilliant! Thanks for your help Paul
 
Forum Index -> SongKong Questions
Go to:   
Powered by JForum 2.1.6 © JForum Team