INTERACT FORUM

More => Old Versions => JRiver Media Center 25 for Windows => Topic started by: Al ex on January 09, 2020, 09:23:38 am

Title: Move file to certain folder, based on rating
Post by: Al ex on January 09, 2020, 09:23:38 am
Hi,
I had to re-install JRiver and I had to re-configure evertything from scratch.

Over the last years, I had an automated function to move files to certain folders, after i have rated them.

The configuration was:
if for example the rating is 5 stars, then move from folder on D:\Alex 6 Musik\new  to \\DS415PLAY\Alex 6 Musik\5Stars
if for example the rating is 4 stars, then move from folder on D:\Alex 6 Musik\new  to \\DS415PLAY\Alex 6 Musik\4Stars

I cannot recall anymore, how I set this up in "Rename Move & Copy Files". Did that at least 7-8 years ago, and already then someone helped me.

I guess it needs a little function, but I donīt know how to do that. Anyone, who could give me a hint? Thanks a lot.

Alex
Title: Re: Move file to certain folder, based on rating
Post by: Moe on January 09, 2020, 10:36:36 am
Something like this?

Code: [Select]
if(isequal([rating], 5, 1), Directory path 1, if(isequal([rating], 4, 1), Directory path 2, if(isequal([rating], 3, 1), Directory path 3, if(isequal([rating], 2, 1), Directory path 4, if(isequal([rating], 1, 1), Directory path 5, Directory path 6)))))
Title: Re: Move file to certain folder, based on rating
Post by: Al ex on January 09, 2020, 01:26:08 pm
Yes - almost there Moe, thanks!

But it seems it adds unwanted sub-folders as well. And also, it is not renaming the filename according to new tag names. It is using the old filenames.

Have a look at the attached screenshot....
Title: Re: Move file to certain folder, based on rating
Post by: Moe on January 09, 2020, 02:19:42 pm
Where you have

[Artist] - [Album] - [Track #] - [Filename]

I think having [Filename] in there is rather redundant, is it not?  You're specifically telling it to use the old filename to rename the filename.

Something like

[Artist] - [Album] - [Track #] - [Name]

Would make a lot more sense, to me anyway
Title: Re: Move file to certain folder, based on rating
Post by: Al ex on January 09, 2020, 03:35:48 pm
Yes you are right - that was wrong. Works again like a charm now, thank you!
BR from Vienna, Alex