[Logo] Jaikoz and SongKong Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Seeking help with file renaming  XML
Forum Index -> SongKong Questions
Author Message
wilcoson

Enthusiast

Joined: 05/04/2017 23:54:17
Messages: 13
Offline

Newbie to Songkong after using another program for yrs. I want to give each album I tag a unique naming convention b/c I have many releases of the same album title. For yrs I've been appending the label and catalog ID to the end of the album as a way to keep the files from cross-pollinating and overwriting themselves. Does anyone know a way to do this with Songkong? My typical naming would be something like:

AlbumArtistorArtist - Album (Label Catalog ID)/Disc - Track - Title

Or

AlbumArtistorArtist/Album (Label Catalog ID)/Disc - Track - Title

Something along those lines, unless someone has a better way of handling that I haven't considered. Hope this makes sense. Really want to give Songkong a try but this may be a deal breaker, which would stink since I already purchased a license. Thanks for any help you can provide
paultaylor

Pro
[Avatar]

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

Hi, yes sure you can do that.

- Ensure you have rename enabled on the Basic tab via the Rename fields based on metadata option.

- Go onto filenaming tab

- In FileName masks drop down select Add

- Enter name such as

Code:
 AlbumArtistorArtist/Album Label Catano /Disc - Track - Title 
 


- Enter mask

Code:
 ifnotempty2(albumartist,artist,'/')
 + ifnotempty(album,' ')
 + ifnotempty('(' + recordlabel + ' ' + catalogno + ')','/')
 + ifnotempty(pad(discno,2),' - ')
 + ifnotempty(pad(trackno,2),' - ')
 + title
  + classicalcatalog
 

Click ok

- Select this new mask AlbumArtistorArtist/Album Label Catano /Disc - Track - Title as the mask to use for Rename Mask and Compilation Rename Mask

And that should be it

thanks Paul (Administrator)
wilcoson

Enthusiast

Joined: 05/04/2017 23:54:17
Messages: 13
Offline

Thanks Paul, I'm almost there. One thing I haven't figured out but will cont trying. I want to use the same file masking for single and multi disc sets, wherein for single discs the disc number is left off but is added when it's a multi set. Basically,

Single = trackno - artist - album - title
Multi = discno - trackno - artist - album - title

Any thoughts or is this a futile effort? Thanks again, really like the one click tagging and jaikoz for exceptions!
paultaylor

Pro
[Avatar]

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

Hi, yes you can just use the ismultidisc function

Code:
 ifnotempty2(albumartist,artist,'/')
 + ifnotempty(album,' ')
 + ifnotempty('(' + recordlabel + ' ' + catalogno + ')','/')
 + ifmultidisc(ifnotempty(pad(discno,2),' - '))
 + ifnotempty(pad(trackno,2),' - ')
 + title
  + classicalcatalog
 

thanks Paul (Administrator)
wilcoson

Enthusiast

Joined: 05/04/2017 23:54:17
Messages: 13
Offline

Hi Paul,

That gave me the same results as before. Discno shows up in both results vs being contingent on single/multidisc. I'm beginning to think it's not possible without a more complex expression.

Results

single:

Greatest Hits, Volume II (Arista Nashville 82876-53097-2)
01 - 02 - Everything I Love.flac

multi:

34 Number Ones (Arista Nashville 88697-78681-2)
01 - 01 - Ring of Fire.flac

Thanks
paultaylor

Pro
[Avatar]

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

I just checked the release you said was a single disc, according to MusicBrainz its actually 2 discs https://musicbrainz.org/release/05317cac-dfc4-4ce9-880a-3030c8564602. So maybe you only have one of the discs but it is actually a multi disc album.

thanks Paul (Administrator)
wilcoson

Enthusiast

Joined: 05/04/2017 23:54:17
Messages: 13
Offline

There are apparently 2 versions, SK grabbed the multidisc one. I've fixed it with jaikoz lookup. Thanks Paul, I think I've got solutions for apps now. Learned a lot thru trial and error.

If anyone wants to get their hands dirty this is an ex of what I came up with for Songkong for single artist titles and comps :

Code:
 ifnotempty2(albumartist,artist,'/')
  + '(' + (year.length>4 ? year.substring(0,4):year) + ')' + ' ' + ifnotempty(album,' [') + ifnotempty(recordlabel,'-') + ifnotempty(catalogno,']'+'/')
  + ifmultidisc(ifnotempty(pad(discno,2),' - ')) + ifnotempty(pad(trackno,2),' - ') + ifnotempty2(albumartist,artist,' - ')
  + ifnotempty(substring(originalyear,4),' - ') + ifnotempty(originalalbum,' - ') + ifnotempty(title,'') + classicalcatalog
 


And for multi artist comps:

Code:
 ifnotempty2(albumartist,artist,'/')
  + '(' + (year.length>4 ? year.substring(0,4):year) + ')' + ' ' + ifnotempty(album,' [') + ifnotempty(recordlabel,'-') + ifnotempty(catalogno,']'+'/')
  + ifmultidisc(ifnotempty(pad(discno,2),' - ')) + ifnotempty(pad(trackno,2),' - ')
  + ifnotempty2(albumartist,artist,' - ') + ifnotempty(substring(originalyear,4),' - ') + ifnotempty(originalalbum,' - ') + ifnotempty(title,'') + classicalcatalog
 

Jaikoz is the same but with a little different language. Took awhile but I learned a little in the process. Thanks again Paul!
paultaylor

Pro
[Avatar]

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

Thanks for posting, I amended your post to just add [code] [/code] round your masks, that is how you do it.

If I not mistakedn you have used the same code for both non compilations/compilations anyway but that is fine.

thanks Paul (Administrator)
wilcoson

Enthusiast

Joined: 05/04/2017 23:54:17
Messages: 13
Offline

Thanks Paul. I tried the code brackets but it wasn't working for some reason. Anyhow, I originally had 2 different ones when I first posted this reply but have settled on using the same one for single artist comps. I like the way it works for both. I have a separate one for multi-artist but only need it occasionally. I've also reverted to using jaikoz a lot more because I have so many versions that have to be manually looked up. Songkong doesn't allow for that though, so there's definitely a continuing need to support both apps. Hint, please don't obsolete jaikoz! ;)

Thanks!
paultaylor

Pro
[Avatar]

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

Hi, whilst I have been concentrating on SongKong development recently please be assured that I have big plans for Jaikoz.

thanks Paul (Administrator)
wilcoson

Enthusiast

Joined: 05/04/2017 23:54:17
Messages: 13
Offline

Great to hear! Thanks
 
Forum Index -> SongKong Questions
Go to:   
Powered by JForum 2.1.6 © JForum Team