mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
GwR fix for failed call to set artwork
This commit is contained in:
parent
7116a0a744
commit
e5b34824bd
@ -1221,12 +1221,19 @@ class ITUNES(DriverBase):
|
|||||||
return thumb
|
return thumb
|
||||||
|
|
||||||
if isosx:
|
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:
|
if lb_added:
|
||||||
|
try:
|
||||||
lb_added.artworks[1].data_.set(cover_data)
|
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:
|
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:
|
try:
|
||||||
db_added.artworks[1].data_.set(cover_data)
|
db_added.artworks[1].data_.set(cover_data)
|
||||||
except:
|
except:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user