mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
GwR revisions
This commit is contained in:
parent
1fa4e3da98
commit
b67afe04fe
@ -51,7 +51,7 @@ class ITUNES(DevicePlugin):
|
|||||||
description = _('Communicate with iBooks through iTunes.')
|
description = _('Communicate with iBooks through iTunes.')
|
||||||
supported_platforms = ['osx','windows']
|
supported_platforms = ['osx','windows']
|
||||||
author = 'GRiker'
|
author = 'GRiker'
|
||||||
driver_version = '0.1'
|
driver_version = '0.2'
|
||||||
|
|
||||||
OPEN_FEEDBACK_MESSAGE = _(
|
OPEN_FEEDBACK_MESSAGE = _(
|
||||||
'Apple device detected, launching iTunes, please wait...')
|
'Apple device detected, launching iTunes, please wait...')
|
||||||
@ -1133,7 +1133,7 @@ class ITUNES(DevicePlugin):
|
|||||||
if 'iPod' in self.sources:
|
if 'iPod' in self.sources:
|
||||||
connected_device = self.sources['iPod']
|
connected_device = self.sources['iPod']
|
||||||
if 'Books' in self.iTunes.sources[connected_device].playlists.name():
|
if 'Books' in self.iTunes.sources[connected_device].playlists.name():
|
||||||
return self.iTunes.sources[device].playlists['Books'].file_tracks()
|
return self.iTunes.sources[connected_device].playlists['Books'].file_tracks()
|
||||||
return []
|
return []
|
||||||
|
|
||||||
elif iswindows:
|
elif iswindows:
|
||||||
@ -1183,7 +1183,7 @@ class ITUNES(DevicePlugin):
|
|||||||
connected_device = self.sources['iPod']
|
connected_device = self.sources['iPod']
|
||||||
if isosx:
|
if isosx:
|
||||||
if 'Purchased' in self.iTunes.sources[connected_device].playlists.name():
|
if 'Purchased' in self.iTunes.sources[connected_device].playlists.name():
|
||||||
return [pb.database_ID() for pb in self.iTunes.sources[device].playlists['Purchased'].file_tracks()]
|
return [pb.database_ID() for pb in self.iTunes.sources[connected_device].playlists['Purchased'].file_tracks()]
|
||||||
else:
|
else:
|
||||||
return []
|
return []
|
||||||
elif iswindows:
|
elif iswindows:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user