266
266
collections = booklist.get_collections(collections_attributes)
268
268
with closing(sqlite.connect(dbpath)) as connection:
269
self.update_device_books(connection, booklist, source_id, plugboard)
269
self.update_device_books(connection, booklist, source_id,
270
271
self.update_device_collections(connection, booklist, collections, source_id)
272
273
debug_print('PRST1: finished update_device_database')
274
def update_device_books(self, connection, booklist, source_id, plugboard):
275
def update_device_books(self, connection, booklist, source_id, plugboard,
276
278
upload_covers = opts.extra_customization[self.OPT_UPLOAD_COVERS]
277
279
refresh_covers = opts.extra_customization[self.OPT_REFRESH_COVERS]