KG changes

This commit is contained in:
GRiker 2010-05-28 16:02:16 -06:00
commit 56eb42ddea
2 changed files with 6 additions and 1 deletions

View File

@ -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:

View File

@ -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):