mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
KG changes
This commit is contained in:
commit
56eb42ddea
@ -682,8 +682,13 @@ class ITUNES(DevicePlugin):
|
|||||||
'''
|
'''
|
||||||
Fetch the size of a book stored on the device
|
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()
|
device_books = self._get_device_books()
|
||||||
for d_book in 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:
|
if d_book.name() == title and d_book.artist() == author:
|
||||||
return d_book.size()
|
return d_book.size()
|
||||||
else:
|
else:
|
||||||
|
@ -27,7 +27,7 @@ class DeviceError(ProtocolError):
|
|||||||
|
|
||||||
class UserFeedback(DeviceError):
|
class UserFeedback(DeviceError):
|
||||||
INFO = 0
|
INFO = 0
|
||||||
WARN = 1
|
WARN = WARNING = 1
|
||||||
ERROR = 2
|
ERROR = 2
|
||||||
|
|
||||||
def __init__(self, msg, details, level):
|
def __init__(self, msg, details, level):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user