Page 5 of 7

Re: Write cover / album art images to MP3s - Mac Python script / Win EXE now av

Posted: February 3rd, 2010, 4:13 am
by phischi
zakharm wrote: It's a bug.
ok thanx

Re: Write cover / album art images to MP3s - Mac Python script / Win EXE now avail

Posted: February 3rd, 2010, 10:12 am
by Ronald Pagan
Having some problems with this script that I never used to have.  Here's a past of the script output

Code: Select all

01-beach_house-zebra.mp3 : artist: Beach House album: Teen Dream
Album art fetch from AMZN: Someablum
02-somealbum
03-somealbum
Error: Directory not empty, cannot remove
Traceback (most recent call last):
  File "write_album_art.py", line 311, in <module>
  File "write_album_art.py", line 273, in do_recurse
  File "write_album_art.py", line 270, in do_recurse
  File "write_album_art.py", line 277, in do_recurse
  File "write_album_art.py", line 154, in read_mp3
  File "shutil.pyc", line 200, in move
WindowsError: [Error 32] The process cannot access the file because it is being used by another process: 'd:\\shares\\Music\\somealbum.mp3'

Basically sometimes it will process all of the mp3s in an album and other times it will hang on one.  Annoying, don't know why, it says because some other process is using the file. 

Re: Write cover / album art images to MP3s - Mac Python script / Win EXE now avail

Posted: February 3rd, 2010, 10:15 am
by zakharm
Which version of SAB are you on?

I've never had this error with my script, but I've had Windows lock folders on me a good bit.

Re: Write cover / album art images to MP3s - Mac Python script / Win EXE now av

Posted: February 10th, 2010, 5:45 am
by tafkaj
Hi zakharm,

I saw your post about python scripts an 10.6 and managed to change path settings in write_album_art.py. The script doesn't break any more now but the only thing it really does reliably is removing the download folder when set in the .ini  ::)
I know its my fault but it seems that I am not able to get the script running:
I still get 'import site' failed; use -v for traceback error although I added the OSX python paths
AWS returns "The request must contain the parameter Signature." ??? (btw do I have to use the key ord id from aws?)
Albums are not Added to iTunes (I tried "add_to_itunes_even_on_cover_fail" since I get an AWS error - I also tried to start addtolib manually once, it wanted to install rosetta!?!)
...
I am getting more and more desperate - is there a chance you provide an updated (Snow Leopard) version of your script?  ;)

TIA Jakob

Re: Write cover / album art images to MP3s - Mac Python script / Win EXE now avail

Posted: February 10th, 2010, 9:30 am
by zakharm
I do have an updated version if anyone wants to beta test it.  PM me.

Re: Write cover / album art images to MP3s - Mac Python script / Win EXE now av

Posted: February 10th, 2010, 3:57 pm
by tafkaj
You got mail.
Thanks for the script - it seems to work really good. The only issue so far is that I can't get addtolib.app working. Are you sure that addtolib.app (from 2004) works with the latest OSX and iTunes versions? Any idea how I can debug this - there are no error msgs coming from the app...

TIA

Re: Write cover / album art images to MP3s - Mac Python script / Win EXE now avail

Posted: March 12th, 2010, 1:03 am
by joebrady
I also see the error about "The request must contain the parameter Signature.".  And also  "Cannot reach XBMC"

Re: Write cover / album art images to MP3s - Mac Python script / Win EXE now avail

Posted: October 14th, 2010, 12:23 pm
by soopahfly
I can't get this script to rename the folder/files, despite setting the options in the config file to "True"

It embeds the Album Art OK though.

Re: Write cover / album art images to MP3s - Mac Python script / Win EXE now avail

Posted: October 15th, 2010, 3:46 pm
by zakharm
Updated to v0.6 - 10/15/2010
I haven't had a chance to keep up with the script, but here is the latest version I created a while back.

You're going to need your AMZN AWS Key and also a secondary AWS Secret Key that you can find in your Amazon Web Services Account to run the source.

Please see the first post for download links.

Re: Write cover / album art images to MP3s - Mac Python script / Win EXE now avail

Posted: November 24th, 2010, 4:14 am
by Dipstick
Hi,
Has anyone tried messing with the mac version to get it to work on Linux (Ubuntu)?

Is there any reason why it wouldn't run on linux?
cheers

dipstick

Re: Write cover / album art images to MP3s - Mac Python script / Win EXE now avail

Posted: November 24th, 2010, 8:21 am
by zakharm
Dipstick wrote:Is there any reason why it wouldn't run on linux?
The script should work except for the iTunes integration.

Re: Write cover / album art images to MP3s - Mac Python script / Win EXE now avail

Posted: December 19th, 2010, 9:21 am
by flips
Great plugin!

One issue I'm having is that the files don't move into a folder based on the file artist and album name like the ini file infers.
#Removes original "ARTIST - ALBUM (YEAR)" folder and makes: [MUSIC Root]\[ARTIST]\[ALBUM]

The folder created is just the name of the nzb file, but if I set clean_dir_struct to True then it creates the indented directory structure.

I would rather have  "ARTIST - ALBUM (YEAR)", than the indented structure.  Is there anything special I need to do.  It seems like this is the default behavior, but not for me.

Thanks,
flips

Re: Write cover / album art images to MP3s - Mac Python script / Win EXE now avail

Posted: December 19th, 2010, 10:08 am
by zakharm
If I remember correctly I think you'll have to go into the python code and change it.

Re: Write cover / album art images to MP3s - Mac Python script / Win EXE now avail

Posted: December 19th, 2010, 8:19 pm
by flips
Ah.  Okay...  Never coded in python before, but looking through the code I think I can set clean_dir_struct True and then change this line:

NEW_MUSIC_PATH = os.path.join(os.path.join(music_root, artist), album)

I don't really need the year (not sure how you would get that from amazon anyway) so can I just do something like this to get Artist - Album?

NEW_MUSIC_PATH = os.path.join(music_root, artist, , " - ", album)   

Thanks,
flips

Re: Write cover / album art images to MP3s - Mac Python script / Win EXE now avail

Posted: December 19th, 2010, 8:54 pm
by zakharm
Each parameter you add to os.path.join adds a separator which you don't want.

So if you want [MUSIC_ROOT]\[ARTIST - ALBUM] I believe it would be like this:
NEW_MUSIC_PATH = os.path.join(music_root, artist + " - " + album)