INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: 'Rename, Move & Copy Files' function to change the Disc # from CD01 to 01  (Read 1989 times)

DiedeVDL

  • Member
  • *
  • Posts: 2

Hi I'm new here, but have been using JRiver Media Center since version 15.

I'm currently using MC22 and have imported files from my NAS.

‪I've used the 'Fill Properties From Filename' function in 'Library Tools' to get the Tags right with following path: [Artist] \ [Year] - [Album] \ [Disc #] \ [Track #] - [Name]

For multi-CD albums I have an issue as my file structure is named CD01, CD02, ... and MC22 expects (I presume) a value 01, 02, ... so I get 'Unknown Disc #'

example: Z:\10cc\1977 - Live & Let Live\CD01\01 - The Second Sitting For The Last Supper.flac

So I was thinking of using the 'Rename, Move & Copy Files' function to change CD01 to 01, CD02 to 02 etc, but I don't really know how to do this.

Any help would be welcome, thanks!

BR,
Diede

Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: 'Rename, Move & Copy Files' function to change the Disc # from CD01 to 01
« Reply #1 on: September 27, 2017, 04:38:33 pm »

You may be able to fill in the disc # on these albums with a custom rule something like:

\CD[Disc #]\

Play around with it and you can probably make it work.

Brian.
Logged

ferday

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1732
Re: 'Rename, Move & Copy Files' function to change the Disc # from CD01 to 01
« Reply #2 on: September 27, 2017, 06:19:19 pm »

Code: [Select]
[album artist (auto)]\[album]-if(isequal([year],[date (release)]),[year],RM-[date (release)]-[year])-[file type]-[album format]\if(isempty([disc #]),disc [disc #],)
just a copypasta from one of my RMC expressions, that only enters a disc number if it exists (i leave disc empty if there is only one).  maybe it will give you some ideas
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: 'Rename, Move & Copy Files' function to change the Disc # from CD01 to 01
« Reply #3 on: September 27, 2017, 06:34:37 pm »

Ferday,

Diede doesn't have any metadata for [Disc #] for his multi disc albums.  He's trying to harvest it from his file names and is thinking that RM&C might be able to rename his files/directories.   But since he doesn't have the metadata, I don't think it can work.  Which is why I suggested a rule for fill properties from filename.

Brian.
Logged

ferday

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1732
Re: 'Rename, Move & Copy Files' function to change the Disc # from CD01 to 01
« Reply #4 on: September 27, 2017, 07:33:41 pm »

Indeed!  My bad
Logged

DiedeVDL

  • Member
  • *
  • Posts: 2
Re: 'Rename, Move & Copy Files' function to change the Disc # from CD01 to 01
« Reply #5 on: September 28, 2017, 05:10:15 am »

Hi Brian, Ferday,

Thank you so much for your help.

The \CD[Disc #]\ rule worked fine for about 90% of the files  :)

Unfortunately that left still about 25k files with several exceptions. Sometimes because there was already a disc # in the tag, sometimes because the CD01 etc were in the album name and many more issues.

Each time I thought a had it a number of exceptions kept showing up.
Anyway after a couple of hours of drilling down in the files solving in different iterations I've got it all sorted out now  ;D

Again, thanks for helping me out!

BR,
Diede
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: 'Rename, Move & Copy Files' function to change the Disc # from CD01 to 01
« Reply #6 on: September 28, 2017, 04:38:27 pm »

I'm happy to hear you got it all figured out.  :)

Brian.
Logged
Pages: [1]   Go Up