mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
Added diagnostic detecting non-responsive iTunes automation interface in response to #791530
This commit is contained in:
parent
5987a0eeae
commit
30384a7841
1 changed files with 9 additions and 1 deletions
|
|
@ -2392,6 +2392,15 @@ def _launch_iTunes(self):
|
|||
self.iTunes.Windows[0].Minimized = True
|
||||
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
|
||||
media_dir = ''
|
||||
string = None
|
||||
|
|
@ -2988,7 +2997,6 @@ def _xform_metadata_via_plugboard(self, book, format):
|
|||
newmi = book
|
||||
return newmi
|
||||
|
||||
|
||||
class ITUNES_ASYNC(ITUNES):
|
||||
'''
|
||||
This subclass allows the user to interact directly with iTunes via a menu option
|
||||
|
|
|
|||
Loading…
Reference in a new issue