CDPedia and itunes artwork

Report your bugs here - if someone else has already mentioned the same bug, just add on to their post with as much info as possible to make the hunting easier.
zadig
Contributor
Contributor
Posts: 6
Joined: Wed Mar 17, 2010 5:38 am

CDPedia and itunes artwork

Post by zadig »

hi,

when i import entire library or playlist, not all artworks are imported or worst some of them does not belong to the right cd…
any help?
User avatar
Conor
Top Dog
Posts: 5346
Joined: Sat Jul 03, 2004 12:58 pm
Contact:

Re: CDPedia and itunes artwork

Post by Conor »

This one is a bit complicated as iTunes keeps the artwork separate from the export file. CDpedia uses the iTunes persistent ID so the match should be exact. If you don't mind please send us one of the MP3 files where the artwork is not added or is the incorrect one and we can try to repeat it by adding it to our own iTunes library.
zadig
Contributor
Contributor
Posts: 6
Joined: Wed Mar 17, 2010 5:38 am

Re: CDPedia and itunes artwork

Post by zadig »

thanks for your answer, but i've tried severals imports, and the tracks can have the right artwork, nothing, or bad artwors. it's change each import
User avatar
Conor
Top Dog
Posts: 5346
Joined: Sat Jul 03, 2004 12:58 pm
Contact:

Re: CDPedia and itunes artwork

Post by Conor »

Thank you for the extra details. I'll see if I can reproduce it or find the bug.
zadig
Contributor
Contributor
Posts: 6
Joined: Wed Mar 17, 2010 5:38 am

Re: CDPedia and itunes artwork

Post by zadig »

hi,

artworks are still wrong :( :( :(

no fix?

regards
User avatar
Conor
Top Dog
Posts: 5346
Joined: Sat Jul 03, 2004 12:58 pm
Contact:

Re: CDPedia and itunes artwork

Post by Conor »

I was never able to reproduce it. For the next major release I plan to re-write the entire integration with iTunes using the AppleScript-Cocoa bridge, that will give me more control and a tighter integration with iTunes. But this technology is only 10.5 compatible so it has to wait a bit longer. Hopefully that should take care of the issue, but if you do run into any other details that might help me track down the bug, do please let me know.
zadig
Contributor
Contributor
Posts: 6
Joined: Wed Mar 17, 2010 5:38 am

Re: CDPedia and itunes artwork

Post by zadig »

here a consol log, i ve got severals like this (hope it helps) :

Error running script: {
NSAppleScriptErrorAppName = iTunes;
NSAppleScriptErrorBriefMessage = "AppleEvent timed out.";
NSAppleScriptErrorMessage = "iTunes got an error: AppleEvent timed out.";
NSAppleScriptErrorNumber = -1712;
NSAppleScriptErrorRange = NSRange: {340, 2};
}
with timeout of 7 seconds
tell application "iTunes"
set these_tracks to every track of library playlist 1 whose persistent ID is "5323EC4696C058D0"
set theTrack to these_tracks
if ((these_tracks count) is greater than 0) then
set theTrack to item 1 of these_tracks
end if
if (class of theTrack is file track and artworks of theTrack is not {}) then
set artworkData to (data of artwork 1 of theTrack) as picture
set artworkFormat to (format of artwork 1 of theTrack) as string
return {artworkData, artworkFormat}
end if
end tell
end timeout
User avatar
Conor
Top Dog
Posts: 5346
Joined: Sat Jul 03, 2004 12:58 pm
Contact:

Re: CDPedia and itunes artwork

Post by Conor »

The bridging I mentioned above should certainly help in this case. It seems iTunes is not responding to the request for the image. Could you please try taking the script that is outputted for debugging and running it directly in AppleScript Editor and sending the errors it produces there. You will find AppleScript Editor in your utilities folder under Snow Leopard. Copy paste the following script into a new document and press the run button.

Code: Select all

with timeout of 7 seconds
tell application "iTunes"
set these_tracks to every track of library playlist 1 whose persistent ID is "5323EC4696C058D0"
set theTrack to these_tracks
if ((these_tracks count) is greater than 0) then
set theTrack to item 1 of these_tracks
end if
if (class of theTrack is file track and artworks of theTrack is not {}) then
set artworkData to (data of artwork 1 of theTrack) as picture
set artworkFormat to (format of artwork 1 of theTrack) as string
return {artworkData, artworkFormat}
end if
end tell
end timeout
zadig
Contributor
Contributor
Posts: 6
Joined: Wed Mar 17, 2010 5:38 am

Re: CDPedia and itunes artwork

Post by zadig »

ok, sometime i've got this error when running the script : error "iTunes got an error: AppleEvent timed out." number -1712

or sometimes long long result :{«data PICTA32C........000000FF», "«class PNG »"}


could it be because my library is on networked ethernet disk?
User avatar
Conor
Top Dog
Posts: 5346
Joined: Sat Jul 03, 2004 12:58 pm
Contact:

Re: CDPedia and itunes artwork

Post by Conor »

Thank you. It's likely that when your network is busy iTunes is not responding in time to the request for the images data. When you get the long reply that is the correct data. I'll investigate if there something to be done, but it sounds more like a network issue.
daniel_m
Bruji Friend
Bruji Friend
Posts: 16
Joined: Sat Jul 03, 2010 6:19 am
Location: Auckland, New Zealand

Re: CDPedia and itunes artwork

Post by daniel_m »

Hello I just ran in the same problem, but I get another error message...

Code: Select all

27.06.10 16:58:39	CDpedia[434]	Error running script: {
    NSAppleScriptErrorBriefMessage = "Das Ergebnis der Berechnung ist zu gro\U00df.";
    NSAppleScriptErrorMessage = "Das Ergebnis der Berechnung ist zu gro\U00df.";
    NSAppleScriptErrorNumber = -2702;
    NSAppleScriptErrorRange = NSRange: {497, 13};
}
with timeout of 7 seconds
tell application "iTunes"
set these_tracks to every track of library playlist 1 whose persistent ID is "86BB630769851246"
set theTrack to these_tracks
if ((these_tracks count) is greater than 0) then
set theTrack to item 1 of these_tracks
end if
if (class of theTrack is file track and artworks of theTrack is not {}) then
set artworkData to (data of artwork 1 of theTrack) as picture
set artworkFormat to (format of artwork 1 of theTrack) as string
return {artworkData, artworkFormat}
end if
end tell
end timeout
I used CoverScout to update the covers iTunes didn't find...

Is there anything I can do about this ??
User avatar
Conor
Top Dog
Posts: 5346
Joined: Sat Jul 03, 2004 12:58 pm
Contact:

Re: CDPedia and itunes artwork

Post by Conor »

Can you narrow it down to a specific track it's having problems importing, by making a playlist with only one or two songs in it. The error "-2702" is that the numeric number was to large for AppleScript. Not sure where this could be an issue, maybe with a very large cover downloaded from CoverScout.
daniel_m
Bruji Friend
Bruji Friend
Posts: 16
Joined: Sat Jul 03, 2010 6:19 am
Location: Auckland, New Zealand

Re: CDPedia and itunes artwork

Post by daniel_m »

One more thing you have to know...

My iTunes Library is on an external FreeNas system that has an afp mount for the music library..

I imported the Library using import Library and not using the iTune import, as this only works in my home folder...
I now copied one of the albums that didn't load in my local iTunes Library and now I could import this album with the artwork...

I will further investigate...
jschaffe
Addicted to Bruji
Addicted to Bruji
Posts: 57
Joined: Mon Mar 09, 2009 7:58 pm

Re: CDPedia and itunes artwork

Post by jschaffe »

I just deleted everything from CDpedia and reimported my entire iTunes music library (in order to get lots of updates), and I'm also having a problem with missing artwork. All my iTunes tracks have artwork, but many (most?) of the albums don't have their artwork in CDpedia.

My configuration is a 27" iMac, the iTunes media files on an external firewire drive but the iTunes application, the iTunes library file and artwork folder, the CDpedia application and data are all on the internal drive. I'm running Snow Leopard 10.6.4, iTunes 9.2 (61), and CDpedia 4.6.1. iTunes was running while I performed the import.
jschaffe
Addicted to Bruji
Addicted to Bruji
Posts: 57
Joined: Mon Mar 09, 2009 7:58 pm

Re: CDPedia and itunes artwork

Post by jschaffe »

Is there any news on the iTunes Cover Art rework you were investigating? I'm kind of DOA as far as publishing my music library at this point.
Post Reply