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
178c06b43e
commit
0ab66d25b5
@ -682,13 +682,8 @@ class ITUNES(DevicePlugin):
|
||||
'''
|
||||
Fetch the size of a book stored on the device
|
||||
'''
|
||||
if DEBUG:
|
||||
self.log.info("ITUNES._get_device_book_size(): looking for title: '%s' author: %s" % (title,author))
|
||||
|
||||
device_books = self._get_device_books()
|
||||
for d_book in device_books:
|
||||
if DEBUG:
|
||||
self.log.info(" evaluating title: '%s' author: '%s'" % (d_book.name(), d_book.artist()))
|
||||
if d_book.name() == title and d_book.artist() == author:
|
||||
return d_book.size()
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user