[Logo] Jaikoz and SongKong Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Label based naming scheme  XML
Forum Index -> General
Author Message
lkschee



Joined: 13/10/2011 03:59:46
Messages: 3
Offline

Whilst I'm waiting for someone to solve my licence woes - this is my renaming scheme for sub-folders:


Non compilation:
Code:
 (label.length>0? label.substring(0,1)  + folderseparator + label:'White Label') + folderseparator +
 (albumartist.length>0 ? albumartist: (artist.length>0 ? artist : '')) + folderseparator +
 album + (mbreleasecountry.length>0 ? ' (' + mbreleasecountry + ')' : '')

which translates to,
If the file has a Record label:
[first letter of label] / [label] / [albumartist OR artist] / [album] (country) 

Otherwise
"White Label" / [albumartist OR artist] / [album] (country) 


Compilation
Code:
(label.length>0? label.substring(0,1)  + folderseparator + label:'White Label') + folderseparator +
 'Compilation' + folderseparator +
 album + (mbreleasecountry.length>0 ? ' (' + mbreleasecountry + ')' : '')

which translates to,
If the file has a Record label:
[first letter of label] / [label] / "Compilation" / [album] (country) 

Otherwise
"White Label" / "Compilation" / [album] (country) 

paultaylor

Pro
[Avatar]

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

Cool, good example.

thanks Paul (Administrator)
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.6 © JForum Team