Freebox Jukebox

E-Touch General Category => General Discussion => Topic started by: squirrellydw on August 03, 2008, 10:13:01 PM

Title: batch program to rename ALL album art
Post by: squirrellydw on August 03, 2008, 10:13:01 PM
Can anyone recommend a program I can use to rename all my album art to COVER?  I would like to be able to run the program and have it rename the jpg files and keep the in the same directory?  I thought I saw something posted here before but I can't find it.

I should also mention that the jpgs are NOT all the same name.
Title: Re: batch program to rename ALL album art
Post by: squirrellydw on August 04, 2008, 04:58:31 AM
or I need a batch program that will rename .jpgs to another name, not format.  I have all my music organized under, MUSIC/ARTIST/ALBUM/TRACK NAMES   In my album folders I have my album art .jpgs that are all named differently and I would like to name them all the same.  So what I need is a simple program that will run through my music directory and through all the subfolders and whenever it finds a .jpg image it renames it to COVER or whatever I choose.

Hope someone can help me

Thanks
Title: Re: batch program to rename ALL album art
Post by: Barcrest on August 04, 2008, 10:36:18 AM
If no one can offer you a solution i will add it as an option to the config for the next release....

A Checkbox that says copy&rename first art found. It will then take the first jpg it finds and copy it with a rename to cover.jpg and it will then resize that if you have that option set. Maybe someone will offer a solution using IRFANVIEW or something but if not then i can add that option if you like.
Title: Re: batch program to rename ALL album art
Post by: Lave Laar on August 04, 2008, 12:08:34 PM
This batch should do it.  Run it from your root music folder.  If you have more than one jpg in a folder, of course only one will be renamed.

FOR /F "tokens=*" %%G IN ('DIR /b /s *.jpg') DO ren "%%G" cover.jpg
Title: Re: batch program to rename ALL album art
Post by: Barcrest on August 04, 2008, 12:40:14 PM
Cheers Lars, saves me some work...
Title: Re: batch program to rename ALL album art
Post by: squirrellydw on August 04, 2008, 02:50:35 PM
thanks lars, I will try it out. 

Barry I think you should still add that as an option.  That way you know the album art is all named the same and when you have the config resize it it will all be resized.  Only about half of mine were resized since not all of them were named cover.
Title: Re: batch program to rename ALL album art
Post by: Barcrest on August 04, 2008, 02:53:51 PM
I knew you would say that.... LOL... Ok i will get it in for you.
Title: Re: batch program to rename ALL album art
Post by: squirrellydw on August 04, 2008, 02:55:57 PM
 ;D  Thanks Barry, you are The Man   :beer
Title: Re: batch program to rename ALL album art
Post by: Barcrest on August 04, 2008, 02:56:37 PM
I think we are approaching the end now.  :'(
Title: Re: batch program to rename ALL album art
Post by: Barcrest on August 04, 2008, 03:02:00 PM
Actually i will have to run thisthrough beta with you, because i want to get the automatic cover downloading working when you generate the database. So you can have the check box and if that cover is missing it will try and download it for you. I have the code half implimented but i want it to be included all in so i can get this config completed once and for all.
Title: Re: batch program to rename ALL album art
Post by: squirrellydw on August 04, 2008, 03:09:18 PM
will it show me the cover it is downloading and what the name of the artist and album is?  If so get to work on it and I will test it out.  I have all my music backed up so if something gets messed up its not a big deal.
Title: Re: batch program to rename ALL album art
Post by: Barcrest on August 04, 2008, 03:16:12 PM
This is why i never overwrite any of the users files and why the tag editor isn't enabled.

It offers you a choice of covers if it finds them and you can pick. It will save it as cover.jpg and it only offers you this option if cover.jpg doesn't exist. (Cover.jpg can be whatever you call it).

There should not be any overwritting of any files.
Title: Re: batch program to rename ALL album art
Post by: squirrellydw on August 04, 2008, 03:24:12 PM
sweet

Title: Re: batch program to rename ALL album art
Post by: squirrellydw on August 04, 2008, 03:47:20 PM
you done yet    ;D
Title: Re: batch program to rename ALL album art
Post by: Barcrest on August 04, 2008, 05:06:50 PM
Probably have a beta ready for tomorrow... Unless i don't end up going the pub tonight in which case i'll probably have it ready later tonight.
Title: Re: batch program to rename ALL album art
Post by: squirrellydw on August 04, 2008, 05:23:38 PM
cool, looking forward to testing it out.
Title: Re: batch program to rename ALL album art
Post by: squirrellydw on August 05, 2008, 08:48:40 PM
 ;D
Title: Re: batch program to rename ALL album art
Post by: Barcrest on August 05, 2008, 11:18:53 PM
I take it that's a hint. Sorry i was copying files and tagging tonight for a friend. Tomorrow...
Title: Re: batch program to rename ALL album art
Post by: squirrellydw on August 06, 2008, 08:59:15 PM
I wouldn't say it was a hint, I am just really excited to try this out.  The cover art download isn't a huge deal to me since most of my albums have art and the ones that don't are bootlegs.  There might be a few that I can get yet but not many.  I am just excited to try out the image renaming/resizing mainly but I will test out everything for you.  I just reformated the computer and all my music is 95% tagged correctly now, spent the last 3 weeks doing that.  So when this is done, I can get it back together and work on the touch game system, skins and the other 10 projects I have to do before the wife kills me.