Page 6 of 7

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

Posted: December 19th, 2010, 10:11 pm
by flips
That did it!  Awesome!!!  Thanks for the help and the great script!!!

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

Posted: December 19th, 2010, 10:17 pm
by zakharm
You're welcome.  Glad to see that it is still working :)

Re: Write cover / album art images to MP3s - Mac Python scr

Posted: December 18th, 2011, 9:56 pm
by pducharme
I don't know if that script is still supported, it's the only one I found that is working !! I did put my AWS key + Secret key in the .ini file...

My only problem is a error, but my file gets imported in iTunes anyway, but I would prefer a error free output :)

Album art fetch from AMZN: Masked Album Title
Amazon AWS error: Your request is missing required parameters. Required parameters include AssociateTag.

Re: Write cover / album art images to MP3s - Mac Python scr

Posted: December 19th, 2011, 10:49 am
by zakharm
Glad it is still working, even with the error you are getting.
pducharme wrote:Amazon AWS error: Your request is missing required parameters. Required parameters include AssociateTag.
It looks like they have added another requirement to fetching data:
"Associate Tag will be a required and verified input parameter in all requests to the API"

Are you using the Python source version or the Windows exe?

Re: Write cover / album art images to MP3s - Mac Python scr

Posted: December 19th, 2011, 1:47 pm
by pducharme
I'm using it on Mac, so It's the Python version i guess ?

Re: Write cover album art to MP3s, organize files, iTunes im

Posted: December 20th, 2011, 8:16 am
by zakharm
I've updated the script to include the Amazon Associate Tag, download from the first page / original post.

You can use any random string for the tag. Backup your waa_conf.ini file before you overwrite it and compare the two for changes.

Re: Write cover album art to MP3s, organize files, iTunes im

Posted: December 20th, 2011, 9:21 pm
by pducharme
doesn't work at all anymore. Doesn't import to iTunes either, now the log is empty, but the Download screen show that :

Exit(1) UnicodeEncodeError: ’ascii’ codec can’t encode character u’\xe9’ in position 20: ordinal not in range(128)

Re: Write cover album art to MP3s, organize files, iTunes im

Posted: December 20th, 2011, 9:26 pm
by pducharme
Searching the Error seems to point to a character "é", it was in my test of the lastest version :O I'll try something else to see.

Re: Write cover album art to MP3s, organize files, iTunes im

Posted: December 20th, 2011, 9:38 pm
by pducharme
It works with another thing, but the "é" is not loved by the Python script...

Thanks again ! Great script, useful for Music & auto-iTunes Match :)

Re: Write cover album art to MP3s, organize files, iTunes im

Posted: December 29th, 2011, 5:35 am
by andydev
Hi,

Great script! just having some small issues.

Code: Select all

When downloading an album I get this:
Album art fetch from AMZN: Album name here
Amazon AWS error: Your request is missing required parameters. Required parameters include AssociateTag.
.... songs...
.... songs...
.... songs...
Error: Directory not empty, cannot remove
It moves it to the correct directory with the right names.

Another question I have is if there is a way to organise the folders/songs differently.

I organise like this:
Artist\Year - Album Name\Artist - Album - Song number - Song Name.mp3

Should I change the sourcecode myself (which would be a shame, since I will need to merge any future changes you do ;)

Thanks for the script mate! Highly appreciated!

Re: Write cover album art to MP3s, organize files, iTunes im

Posted: December 29th, 2011, 11:38 am
by zakharm
Hi Andy,
Thanks for the good review and glad you like it.

I guess I'm just too afraid to wipe out a directory that still has any content within.

I think it's a great idea. I don't have the time right now, but do you have any interest in contributing to the script to add the functionality for custom directory / file name structures?

I could then roll it into the main branch of the script.

Re: Write cover album art to MP3s, organize files, iTunes im

Posted: December 29th, 2011, 8:02 pm
by andydev
zakharm wrote:Hi Andy,
Thanks for the good review and glad you like it.

I guess I'm just too afraid to wipe out a directory that still has any content within.
makes sense.
zakharm wrote:I think it's a great idea. I don't have the time right now, but do you have any interest in contributing to the script to add the functionality for custom directory / file name structures?

I could then roll it into the main branch of the script.
I'm not really a python dev, but I'll see if I have time in the future.

I saw that eyeD3 has a function called:
tagToString(self, pattern)
# %A - artist
# %a - album
# %t - title
# %n - track number
# %N - track total

Maybe we can just use that, and the on the ini file to let the user write the pattern.
The only thing missing in there (for my needs) it's the year. I have written to the developer of eyeD3 to support the year.
The changes needed for it are the following:

Code: Select all

   def tagToString(self, pattern):
       # %A - artist
       # %a - album
       # %t - title
       # %n - track number
       # %N - track total
       # %Y - year
       s = self._subst(pattern, "%A", self.getArtist());
       s = self._subst(s, "%a", self.getAlbum());
       s = self._subst(s, "%t", self.getTitle());
       s = self._subst(s, "%n", self._prettyTrack(self.getTrackNum()[0]));
       s = self._subst(s, "%N", self._prettyTrack(self.getTrackNum()[1]));
       s = self._subst(s, "%Y", self.getYear());
       return s;

Re: Write cover album art to MP3s, organize files, iTunes im

Posted: February 12th, 2012, 4:17 am
by travanx
Has anyone been able to get this to work with the Amazon problem? I am on a PC, used the updated file from the OP, signed up for the associate tag too. Still getting, "Amazon AWS error: Your request is missing required parameters. Required parameters include AssociateTag."

Re: Write cover album art to MP3s, organize files, iTunes im

Posted: February 12th, 2012, 10:35 am
by zakharm
I don't think Ive updated the windows exe yet.

Does it still run succesfully but only gives you that error?

If it doesnt run I'd suggest running the source code version through Python.

Re: Write cover album art to MP3s, organize files, iTunes im

Posted: February 17th, 2012, 3:23 am
by travanx
Can you explain how to run the source code version through python? Thats the only error, but not sure what it's doing right now.