Hi,
I'm running centos5 and because of Python limitations (using 2.4) all
those nice apps like Album Cover Art Downloader, Rhythmbox Art plugin,
Amarok etc. won't work on my box.  Its a pain and I'm not keen to start
messing with python instances as my box is nice and stable, and I'm
still 'green' enough to know my limitations.

Anyway I came across a php script called getalbumart.php found here:-
http://legroom.net/software/getalbumart

This works ok, but it isn't 100%.  e.g. it searches among others
Amazon.com and even though sometimes there is a valid cover the script
doesn't collect it e.g. search for something simple like Pink Floyd and
Dark Side of the Moon, and it won't find a result?!  Must be something
not quite there with this script (any ideas on what to change on the
php script appreciated).  Saying that it still saves a heap of time,
the ones it did fill in are mostly accurate (last run I had 2 which
were not perfect).

The other downside is the script doesn't handle bulk updates, it only
runs 1 search on 1 artist/album.

I'm no perl programmer but I have cobbled something together which will
use this PHP script, and run it against my music folders (see
attatched).  Its long, dirty and I'm sure someone could knock this out
in much fewer lines.  Saying that I haven't been able to find on in my
searches.

I have my music in /home/music/lossless  and /home/music/mp3 so I had
to run the script twice.  The requirement of the script is that you
have a main Artist folder, then then the individual albums in seperate
subdirectories off the Artist folder.

e.g. 
home/music/lossless/beck
home/music/lossless/beck/odelay
home/music/lossless/beck/mutations

If you run for example ./covers.pl /home/music/lossless/ it'll do the
following:-
#1 collect all the artist names (based on directory)
#2 collect the individual album names for that artist

For every album folder it'll check if there is a file called cover.jpg,
if there is a file found getalbumart.php will not be executed.

If there is no cover.jpg file it'll run getalbumart.php and if it can
get a cover it'll place it in the same album folder.

Requirements:-  
The perl script requires use of the 'tree' command and getalbumart.php
from a path.  The getalbumart.php script has its own requirements
listed on the web page above.

While the script runs it flags up a PHP notice when using the php
script, but it seems to still work ok.  At the end of the run the
script will print out a list of results showing how many folders had
cover.jpg artwork already, how many covers were added, and how many
could not be found (see attached as an example).

This isn't something I'll be updating regularly, I wont have the time
to make changes to this script, make updates etc.  Similarly please
don't let me know how the script has wrecked your album covers ;)  

However, please feel free to use the script with the good intention is
was placed here, and make your own changes, enhancements etc.

Thanks
Harry


+-------------------------------------------------------------------+
|Filename: lossless results.txt                                     |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=6891|
+-------------------------------------------------------------------+

-- 
curry100
------------------------------------------------------------------------
curry100's Profile: http://forums.slimdevices.com/member.php?userid=12757
View this thread: http://forums.slimdevices.com/showthread.php?t=59259

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/unix

Reply via email to