[Logo] Jaikoz and SongKong Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Folder renaming  XML
Forum Index -> Jaikoz Questions Go to Page: Previous  1, 2
Author Message
solstice9

Pro

Joined: 26/08/2013 17:03:47
Messages: 48
Offline

so ive just read through all this...I think if I make it clearer it may help and start again

rename folder from metadata:

rename mask : Artist Album

compilation mask: VA Album Year

rename file from metadata :

rename mask : trackno songtitle

compilation mask : trackno artist title

thanks once again...(patience is the virtue)


im using rename from folder :

rename mask :

function ifnotempty(value,sep){
return value.length > 0 ? value + sep : '';
}

function ifnotempty2(value1,value2,sep){
return value1.length > 0 ? value1 + sep :value2.length > 0 ? value2 + sep:'' ;
}

ifnotempty2(albumartist,artist,' ') + ifnotempty(album,' ') + (disctotal>1 ? discno + folderseparator : '')

compilation mask :

function ifnotempty(value,sep){
return value.length > 0 ? value + sep : '';
}

function ifnotempty2(value1,value2,sep){
return value1.length > 0 ? value1 + sep :value2.length > 0 ? value2 + sep:'' ;
}

ifnotempty2(albumartist,artist,' ') + ifnotempty(album,' ') + (disctotal>1 ? discno + folderseparator : '') + ' -' + year

does this allow for multi disc releases....????? as its making multi disc releases all single folders/files

I am going to go over the online help


paultaylor

Pro
[Avatar]

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

That looks okay to me, so okay try it and if it doesn't seem to work please do the following.

Ensure BaseFolder, SubFolder and Filename columns are visible, and copy & paste the three values together from the ViewPane to show the original filename and then the EditPane to show the filename Jaikoz has changed it to and paste in this forum.

No need to save anything, the whole point of jaikoz is you can see what it is going to do before you save the changes.

No need to post massive screenshots of your filesystem, everything we need is in Jaikoz.


thanks Paul (Administrator)
solstice9

Pro

Joined: 26/08/2013 17:03:47
Messages: 48
Offline

Hi
after running auto corrector and correct subfolders and correct filename
I get
\\CLOUD-2330\Volume_1\NEW [FLAC]Cafe Del Mar - Dreams (2000-2012)\Cafe Del Mar - Dreams 4 2CD (2006)\Cafe Del Mar - Dreams 4 CD2 09. Rue Du Soleil - In My Heart.flac

to

\\CLOUD-2330\Volume_1\NEW Various Artists Café del Mar Dreams 4 2\ -2006 09 - Various Artists - In My Heart.flac

the only problem is the artist on the filename has been changed from artist to various.....so dropping albumartist corrects this but when using this syntax
ifnotempty(pad(trackno,2),' - ') + ifnotempty2(artist, ' - ' + title
I cant get ' - ' between artist and title


also when saving changes it moves the subfolders out of the folder

paultaylor

Pro
[Avatar]

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

solstice9 wrote:
Hi
after running auto corrector and correct subfolders and correct filename
I get
\\CLOUD-2330\Volume_1\NEW [FLAC]Cafe Del Mar - Dreams (2000-2012)\Cafe Del Mar - Dreams 4 2CD (2006)\Cafe Del Mar - Dreams 4 CD2 09. Rue Du Soleil - In My Heart.flac

would changing albumartist,artist to artist in the syntax correct this..??
 

Yes, that gives track artist

solstice9 wrote:

also when saving changes it moves the subfolders out of the folder
 

This is open to interpretation, please clarify what you mean, give me the full path of what you want it to look like.

thanks Paul (Administrator)
solstice9

Pro

Joined: 26/08/2013 17:03:47
Messages: 48
Offline

\\CLOUD-2330\Volume_1\NEW Various Artists Café del Mar Dreams 4 2\ -2006 09 - Various Artists - In My Heart.flac

the only problem is the artist on the filename has been changed from artist to various.....so dropping albumartist corrects this but when using this syntax
ifnotempty(pad(trackno,2),' - ') + ifnotempty2(artist, '-' + title
I cant get ' - ' between artist and title

I want the original artist which this does but I cant get a - between artist and song
paultaylor

Pro
[Avatar]

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

The fullpath request was about the subfolder problem but i cant see any difference between the filepath you posted and the filepath you posted as wrong in the previous post

The '-' problem is you are using ifempty2 and because you are missing a bracket it should be:

Code:
 ifnotempty(pad(trackno,2),' - ') + ifnotempty(artist, '-') + title 
 

thanks Paul (Administrator)
solstice9

Pro

Joined: 26/08/2013 17:03:47
Messages: 48
Offline

thanks for the syntax just couldn't get that right all now seems present and correct

so next issue is :
Filename 09 - Hall & Oates - I Can't Go For That (No Can Do) (The Ben Liebrand Remix).flac

09 - Hall & Oates - I Can't Go for That (No Can Do) (Ben Liebrand remix).flac

Sub Folder CD1 to Various Artists Hard to Find Classic & Rare Remixes 1\ -2011

the cd sub folder is being changed from CD1 to album title

and when saved gives me a subfolder off \2011
solstice9

Pro

Joined: 26/08/2013 17:03:47
Messages: 48
Offline

also when saving changes it moves the subfolders out of the folder



so to stop jaikoz from moving the subfolders out of the basefolder on multi a release would I achieve this by shifting base folder to subfolder or subfolder to base folder..???

my concern would be when adding a lot of files it would mean checking all releases before saving
paultaylor

Pro
[Avatar]

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

solstice9 wrote:
thanks for the syntax just couldn't get that right all now seems present and correct

so next issue is :
Filename 09 - Hall & Oates - I Can't Go For That (No Can Do) (The Ben Liebrand Remix).flac

09 - Hall & Oates - I Can't Go for That (No Can Do) (Ben Liebrand remix).flac

Sub Folder CD1 to Various Artists Hard to Find Classic & Rare Remixes 1\ -2011

the cd sub folder is being changed from CD1 to album title

and when saved gives me a subfolder off \2011  

I'm sorry I can't understand this, can you not manage to provide me with the whole of the existing filepath, what it is changed to and what you want it changed to ?

I just require three lines, sorry to be terse but this should be a dead simple question to ask I can't believe this thread has got so long.

thanks Paul (Administrator)
solstice9

Pro

Joined: 26/08/2013 17:03:47
Messages: 48
Offline

so when running folder correct the sub folder is being changed from CD1 to album title and im unsure as why this is or how to prevent it



thanks again
paultaylor

Pro
[Avatar]

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

I think the answer is in the name, Correct SubFolder from Metadata replaces whatever is on the subfolder part of your filepath with the songs metadata based on your rename mask, so CD1 is replaced by your mask which does not include a CD part.

The more confusing part is why your base folder part is wrong. Looking at this example it should just contain\CLOUD-2330\Volume_1 because the base folder should only contain the part of the path that doesnt contain music specific metadata.

When you load the files into Jaikoz it guesses how the split the pathname into base/folder parts, but if it get it wrong you can use the Shift commands as previously mentioned.

.

thanks Paul (Administrator)
solstice9

Pro

Joined: 26/08/2013 17:03:47
Messages: 48
Offline

ifnotempty2(albumartist,artist,' ') + ifnotempty(album,' ') + (disctotal>1 ? discno + folderseparator : '')

compilation:

ifnotempty2(albumartist,artist,' ') + ifnotempty(album,' ') + (disctotal>1 ? discno + folderseparator : '') + ' -' + year

I presumed this syntax had this covered.....
solstice9

Pro

Joined: 26/08/2013 17:03:47
Messages: 48
Offline

what my goal is to

Rename folder/ files Tag and move if matched

It appears so far this is working for a single artist disc release.Renaming is a problem with various artists and multi disc release and I cant work out why ! and am sure its possible to do

also I can only 'save and move if matched' successfully if its added as a manipulation otherwise the folder/files just disappear...

so near yet so far
paultaylor

Pro
[Avatar]

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

Help !

Can anyone in the community please help this guy, I seem unable to explain it in a way that he can understand.

thanks Paul (Administrator)
solstice9

Pro

Joined: 26/08/2013 17:03:47
Messages: 48
Offline

well ive rechecked the File and folder correct rename masks by the examples and they say what I want.

This syntax dosent work for various artists and multi disc releases and still can only save and move if matched as a manipulation.

So this throws up issues as it means im back to renaming folders manually and also wont be able to save releases which are not matched to a separate folder......


solstice9

Pro

Joined: 26/08/2013 17:03:47
Messages: 48
Offline

Paul can u answer please if what im asking is possible before I give up as I cant find any info/tutorial to tell me

I want to rename to a single disc relase to

Artist albumtitle : Blah - BlahBlah

file names as trackno - title : 01 - Blah

multi disc release

Artist albumtitle : Blah - BlahBlah

Disc : cd1 as a folder then

Files : 01 - Blah
02 - Blahblah

cd2 as a folder
01 - blah
02 - blahblah


Various

VA Albumtitle Year

VA - BlahBlah - 2014

if multi disc : cd1

file: 01 - title - Artist

also to move and copy if matched I can only get to work as a manipulation..??? Well I just found a link on my main drive C:\Cloud-2330\Vplime_1\muZika of the missing files that I had been saving atleast I know where they ended up

any pointers here would be greatly appreciated..!!! I hope this is explained so you can understand it
paultaylor

Pro
[Avatar]

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

Its certainly possible and I do feel I've already given you the answer but your examples are still incomplete and unclear, you need to specify the whole path you want not just the filename since previously you were complaining that no folder was created for the discno. And whats the point of filling your example with Blah, Blah - that is of no help to anyone.

So give me a proper examples , something like:

I want files to be renamed to
Artist/Album/"Disc"+DiscNoIfMultiDisc/Artist - Title - TrackNo
i.e
U2/Best Of/Disc1/U2 - The Fly - 07.mp3

and note only two masks can be defined, one for non-compilations and one for compilations, so the masks have to account for both single disc and multidisc releases with logic such as ifmultidisc.

thanks Paul (Administrator)
solstice9

Pro

Joined: 26/08/2013 17:03:47
Messages: 48
Offline

Hi

if single disc release :

Artist - Album Trackno Title.flac

multidisc:

Artist - Album -Discno(cd1/cd2/cd3/cd4 as a folder) Trackno Title

Various :

VA - Albumtitle - Year Disc(cd1/cd2/cd3/cd4 as a folder) trackno Artist - Title

just to make sure im explaining it correctly and you can see the folders for how the CD's to be saved




thanks once again
paultaylor

Pro
[Avatar]

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

Look you have specified this mask

VA - Albumtitle - Year Disc(cd1/cd2/cd3/cd4 as a folder) trackno Artist - Title

which reads to me as put all files in one folder unless they are multi-disc releases in which case create a disc folder, yet except for this detail all songs for all artists will be put in one folder.

But then you post a screenshot indicating you want songs stored in folders organized artist/album !

I'm sorry but I cannot help you if you can't help yourself and specify a pseudo mask showing full path - not just the filename and then give an example of a an actual file showing how it is currently being named by Jaikoz and how you want it to be named as I requested in the previous post.


thanks Paul (Administrator)
solstice9

Pro

Joined: 26/08/2013 17:03:47
Messages: 48
Offline

Hi
what I meant was if it is a multi disc release to create a disc folder ie: cd1 or cd2 etc
paultaylor

Pro
[Avatar]

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

I know that but forgetting about multi disc releases I'm talking about what folder the file should be in

i.e

you have asked for

C:\Music\Artist - Album Trackno Title.flac

don't you really want

C:\Music\Artist\Album\Artist - Album Trackno Title.flac

Please give me a real example with the full path included

thanks Paul (Administrator)
solstice9

Pro

Joined: 26/08/2013 17:03:47
Messages: 48
Offline

paultaylor wrote:
I know that but forgetting about multi disc releases I'm talking about what folder the file should be in

i.e

you have asked for

C:\Music\Artist - Album Trackno Title.flac

don't you really want

C:\Music\Artist\Album\Artist - Album Trackno Title.flac

Please give me a real example with the full path included 


Hi

for a artist with a single disc release I am looking for

Artist - Album Trackno - Title

so as I understand it that would be

U2 - Boy (as a folder)
01 - I Will Follow
02 - Twilight
paultaylor

Pro
[Avatar]

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

Unfortunately that's the problem you don't seem to understand it at all, so when you say

Artist - Album Trackno - Title

do you want to artist and album to be in the filename or only as folders

Can you understand the difference between these two

C:\Music\Artist - Album Trackno Title.flac
C:\Music\Artist\Album\Artist - Album Trackno Title.flac


Why cant you provide me with a full path as you would see it on your computer like above (as I keep on requesting)

thanks Paul (Administrator)
solstice9

Pro

Joined: 26/08/2013 17:03:47
Messages: 48
Offline

Hi

no im looking for trackno and title in the filename only on a single artist release...

C:\Music\Artist - Album Trackno Title.flac : this example seems to me as a single file

C:\Music\Artist\Album\Artist - Album Trackno Title.flac : this example tells me
C:\Music\ Artist\Album (as a folder) - Artist -Album -trackno-Title.flac (as a filename)

paultaylor

Pro
[Avatar]

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

Okay, this should work for you then (although I wouldn't personally advise storing all your files in a single folder)

Set File and Folder Correct:Rename file from Metadata:Rename mask

to rename the filename

Code:
 function pad(number, length) {
       if (number == '') { return '';} 
       var str = '' + number; 
       while (str.length < length) {  
           str = '0' + str;
       }
       return str;
   }
  
  function ifnotempty(value,sep){
      return value.length > 0 ? value + sep : '';
  }
 
  
 ifnotempty(artist,' - ') + ifnotempty(album,'  ') +ifnotempty(pad(trackno,2),'  ') + title
 


but then File and Folder Correct:Rename folder from Metadata:Rename mask should be set to blank.

Use as follows

1. Ensure Base folder, SubFolder and Filename columns are visible using Preferences:Table:Columns
2. Load your music files
3. Check Basefolder is correct, this is the part of the filepath that will not be
modified.
4. If not correct use Action:File and Folder Correct:Shift base Folder to Subfolder or vice versa to correct this.
5. Run Action:File and Correct:Correct SubFolder from Metadata to clear this column (because your mask is blank)
6. Run Action:File and Correct:Correct Filename from Metadata to fix the filename.

(You can use the toolbar instead of the menus for most of these tasks)

Try this, and if you are happy with this we can move to the next stage, you giving me an example filepath for a multi-disc for single artist release

thanks Paul (Administrator)
 
Forum Index -> Jaikoz Questions Go to Page: Previous  1, 2
Go to:   
Powered by JForum 2.1.6 © JForum Team