mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
15c72f8ae1
commit
b7551ef8e7
@ -539,13 +539,14 @@ class MTP_DEVICE(BASE):
|
|||||||
data = BytesIO()
|
data = BytesIO()
|
||||||
self.get_mtp_file(index, data)
|
self.get_mtp_file(index, data)
|
||||||
tfname = data.getvalue().decode().strip()
|
tfname = data.getvalue().decode().strip()
|
||||||
thumbnail = storage.find_path(('system', 'thumbnails', tfname))
|
if tfname:
|
||||||
if thumbnail is not None:
|
thumbnail = storage.find_path(('system', 'thumbnails', tfname))
|
||||||
self.delete_file_or_folder(thumbnail)
|
if thumbnail is not None:
|
||||||
cache = storage.find_path(('amazon-cover-bug', tfname))
|
self.delete_file_or_folder(thumbnail)
|
||||||
if cache is not None:
|
cache = storage.find_path(('amazon-cover-bug', tfname))
|
||||||
self.delete_file_or_folder(cache)
|
if cache is not None:
|
||||||
self.delete_file_or_folder(index)
|
self.delete_file_or_folder(cache)
|
||||||
|
self.delete_file_or_folder(index)
|
||||||
|
|
||||||
def sync_kindle_thumbnails(self):
|
def sync_kindle_thumbnails(self):
|
||||||
for storage in self.filesystem_cache.entries:
|
for storage in self.filesystem_cache.entries:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user