mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 01:14:36 +02:00
...
This commit is contained in:
parent
2912869ff4
commit
a42269e95d
1 changed files with 2 additions and 2 deletions
|
|
@ -715,7 +715,7 @@ def sync_news(self, send_ids=None, do_auto_convert=True):
|
|||
prefix = ascii_filename(prefix)
|
||||
names.append('%s_%d%s'%(prefix, id,
|
||||
os.path.splitext(f.name)[1]))
|
||||
if mi.cover and os.path.access(mi.cover, os.R_OK):
|
||||
if mi.cover and os.access(mi.cover, os.R_OK):
|
||||
mi.thumbnail = self.cover_to_thumbnail(open(mi.cover,
|
||||
'rb').read())
|
||||
dynamic.set('news_to_be_synced', set([]))
|
||||
|
|
@ -752,7 +752,7 @@ def sync_to_device(self, on_card, delete_from_library,
|
|||
metadata = self.library_view.model().metadata_for(ids)
|
||||
ids = iter(ids)
|
||||
for mi in metadata:
|
||||
if mi.cover and os.path.access(mi.cover, os.R_OK):
|
||||
if mi.cover and os.access(mi.cover, os.R_OK):
|
||||
mi.thumbnail = self.cover_to_thumbnail(open(mi.cover,
|
||||
'rb').read())
|
||||
imetadata = iter(metadata)
|
||||
|
|
|
|||
Loading…
Reference in a new issue