Write cover album art to MP3s, organize files, iTunes import

Come up with a useful post-processing script? Share it here!
flips
Newbie
Newbie
Posts: 15
Joined: December 19th, 2010, 9:14 am

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

Post by flips »

That did it!  Awesome!!!  Thanks for the help and the great script!!!
zakharm
Release Testers
Release Testers
Posts: 56
Joined: September 29th, 2008, 1:08 pm

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

Post by zakharm »

You're welcome.  Glad to see that it is still working :)
Write album art post processing script
pducharme
Newbie
Newbie
Posts: 12
Joined: December 17th, 2011, 11:37 am

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

Post 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.
zakharm
Release Testers
Release Testers
Posts: 56
Joined: September 29th, 2008, 1:08 pm

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

Post 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?
pducharme
Newbie
Newbie
Posts: 12
Joined: December 17th, 2011, 11:37 am

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

Post by pducharme »

I'm using it on Mac, so It's the Python version i guess ?
zakharm
Release Testers
Release Testers
Posts: 56
Joined: September 29th, 2008, 1:08 pm

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

Post 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.
pducharme
Newbie
Newbie
Posts: 12
Joined: December 17th, 2011, 11:37 am

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

Post 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)
pducharme
Newbie
Newbie
Posts: 12
Joined: December 17th, 2011, 11:37 am

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

Post 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.
pducharme
Newbie
Newbie
Posts: 12
Joined: December 17th, 2011, 11:37 am

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

Post 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 :)
andydev
Newbie
Newbie
Posts: 7
Joined: December 14th, 2011, 5:54 am

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

Post 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!
zakharm
Release Testers
Release Testers
Posts: 56
Joined: September 29th, 2008, 1:08 pm

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

Post 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.
andydev
Newbie
Newbie
Posts: 7
Joined: December 14th, 2011, 5:54 am

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

Post 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;
travanx
Newbie
Newbie
Posts: 5
Joined: February 12th, 2012, 4:14 am

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

Post 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."
zakharm
Release Testers
Release Testers
Posts: 56
Joined: September 29th, 2008, 1:08 pm

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

Post 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.
travanx
Newbie
Newbie
Posts: 5
Joined: February 12th, 2012, 4:14 am

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

Post 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.
Post Reply