Fix #791530 (Calibre will not sync to iTunes or Device)

This commit is contained in:
Kovid Goyal 2011-06-03 08:51:58 -06:00
commit 85bc21b4f7

View File

@ -2392,6 +2392,15 @@ class ITUNES(DriverBase):
self.iTunes.Windows[0].Minimized = True self.iTunes.Windows[0].Minimized = True
self.initial_status = 'launched' self.initial_status = 'launched'
try:
# Pre-emptive test to confirm functional iTunes automation interface
foo = self.iTunes.Version
except:
self.iTunes = None
raise OpenFeedback('Unable to connect to iTunes.\n' +
' iTunes automation interface non-responsive, ' +
'recommend reinstalling iTunes')
# Read the current storage path for iTunes media from the XML file # Read the current storage path for iTunes media from the XML file
media_dir = '' media_dir = ''
string = None string = None
@ -2988,7 +2997,6 @@ class ITUNES(DriverBase):
newmi = book newmi = book
return newmi return newmi
class ITUNES_ASYNC(ITUNES): class ITUNES_ASYNC(ITUNES):
''' '''
This subclass allows the user to interact directly with iTunes via a menu option This subclass allows the user to interact directly with iTunes via a menu option