mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 14:53:06 +02:00
GwR fix for failed call to set artwork
This commit is contained in:
parent
7116a0a744
commit
e5b34824bd
1 changed files with 10 additions and 3 deletions
|
|
@ -1221,12 +1221,19 @@ def _cover_to_thumb(self, path, metadata, db_added, lb_added, format):
|
|||
return thumb
|
||||
|
||||
if isosx:
|
||||
# The following commands generate an error, but the artwork does in fact
|
||||
# get sent to the device. Seems like a bug in Apple's automation interface?
|
||||
# Could also be a problem with the integrity of the cover data?
|
||||
if lb_added:
|
||||
lb_added.artworks[1].data_.set(cover_data)
|
||||
try:
|
||||
lb_added.artworks[1].data_.set(cover_data)
|
||||
except:
|
||||
if DEBUG:
|
||||
self.log.warning(" iTunes automation interface reported an error"
|
||||
" when adding artwork to '%s' in the iTunes Library" % metadata.title)
|
||||
pass
|
||||
|
||||
if db_added:
|
||||
# The following command generates an error, but the artwork does in fact
|
||||
# get sent to the device. Seems like a bug in Apple's automation interface
|
||||
try:
|
||||
db_added.artworks[1].data_.set(cover_data)
|
||||
except:
|
||||
|
|
|
|||
Loading…
Reference in a new issue