INTERACT FORUM

Please login or register.

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

Author Topic: Renaming based on folder structure  (Read 963 times)

Z0001

  • Citizen of the Universe
  • *****
  • Posts: 541
Renaming based on folder structure
« on: November 24, 2014, 01:03:58 am »

Hi

I have my audio album art saved in the same folder as the album tracks. In cases where it's a multi disc CD I have an additional [disc number] folder in my tree:

...\[album artist]\[album]\Disc [disc number]\[album artist] [album].jpg

I want to import the art and rename it so it reflects the disc number. Is there an automated way I can do this across my library? Eg can I tell MC to "look back" x folders?

Many thanks
Z
Logged

Z0001

  • Citizen of the Universe
  • *****
  • Posts: 541
Re: Renaming based on folder structure
« Reply #1 on: November 24, 2014, 01:36:38 am »

I think I need to use the expression filefolder() in my renaming expression which gives me the immediate aren't folder, is that right?
Logged

Arindelle

  • Citizen of the Universe
  • *****
  • Posts: 2772
Re: Renaming based on folder structure
« Reply #2 on: November 24, 2014, 07:55:19 am »

Have to run out right now, but if it is a once off operation you can set up a "file" type view and rename the images from your file structure or tags. You would need to have a mixed image and audio view and you would need to import, at least temorarily, the cover art into the library.

Not sure why you want to do this however. Before tackling the expression language, is there any specific reason to name your files (or rename them in this case)?  .. if you are using the audio cover art rule, naming them all folder.jpg or cover.jpg is going to work and is pretty standard practice. Technically you don't even need the image as long as it is embedded in the file. It is better to have both the embedded art and  separate cover art per folder.

I also have multi-disc recordings organized the way you do. If naming is not really important, you can insure that all cover art find its way into each sub-folder by simply selecting all the albums and Right-click =>Cover Art => Save Cover art to locations specified in options.  Provided the options are set-up for audio art in each folder it will update everything. Assuming you have correctly embedded the cover art in the file first of course.
Logged
Pages: [1]   Go Up