mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-25 03:55:27 +01:00
...
This commit is contained in:
parent
4cf528da46
commit
bdeee080f9
1 changed files with 2 additions and 2 deletions
|
|
@ -2440,13 +2440,13 @@ def _launch_iTunes(self):
|
|||
as_binding = "dynamic"
|
||||
try:
|
||||
# Try dynamic binding - works with iTunes <= 10.6.1
|
||||
foo = self.iTunes.name()
|
||||
self.iTunes.name()
|
||||
except:
|
||||
# Try static binding
|
||||
import itunes
|
||||
self.iTunes = appscript.app('iTunes', terms=itunes)
|
||||
try:
|
||||
foo = self.iTunes.name()
|
||||
self.iTunes.name()
|
||||
as_binding = "static"
|
||||
except:
|
||||
self.iTunes = None
|
||||
|
|
|
|||
Loading…
Reference in a new issue