mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
After pylint
This commit is contained in:
parent
d1c040d546
commit
5c9e2ae267
@ -110,7 +110,7 @@ class BookList(_BookList):
|
||||
return child
|
||||
return None
|
||||
|
||||
def add_book(self, book, collections):
|
||||
def add_book(self, book, collections=None):
|
||||
if book in self:
|
||||
return
|
||||
""" Add a node into the DOM tree, representing a book """
|
||||
@ -267,6 +267,11 @@ class BookList(_BookList):
|
||||
pli.parentNode.removeChild(pli)
|
||||
pli.unlink()
|
||||
|
||||
def set_tags(self, book, tags):
|
||||
tags = [t for t in tags if t]
|
||||
book.tags = tags
|
||||
self.set_playlists(book.id, tags)
|
||||
|
||||
def set_playlists(self, id, collections):
|
||||
self.remove_from_playlists(id)
|
||||
for collection in set(collections):
|
||||
|
@ -77,7 +77,6 @@ class PRS505(USBMS):
|
||||
return fname
|
||||
|
||||
def sync_booklists(self, booklists, end_session=True):
|
||||
print 'in sync_booklists'
|
||||
fix_ids(*booklists)
|
||||
if not os.path.exists(self._main_prefix):
|
||||
os.makedirs(self._main_prefix)
|
||||
|
Loading…
x
Reference in New Issue
Block a user