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()
|
||||
self.get_mtp_file(index, data)
|
||||
tfname = data.getvalue().decode().strip()
|
||||
thumbnail = storage.find_path(('system', 'thumbnails', tfname))
|
||||
if thumbnail is not None:
|
||||
self.delete_file_or_folder(thumbnail)
|
||||
cache = storage.find_path(('amazon-cover-bug', tfname))
|
||||
if cache is not None:
|
||||
self.delete_file_or_folder(cache)
|
||||
self.delete_file_or_folder(index)
|
||||
if tfname:
|
||||
thumbnail = storage.find_path(('system', 'thumbnails', tfname))
|
||||
if thumbnail is not None:
|
||||
self.delete_file_or_folder(thumbnail)
|
||||
cache = storage.find_path(('amazon-cover-bug', tfname))
|
||||
if cache is not None:
|
||||
self.delete_file_or_folder(cache)
|
||||
self.delete_file_or_folder(index)
|
||||
|
||||
def sync_kindle_thumbnails(self):
|
||||
for storage in self.filesystem_cache.entries:
|
||||
|
Loading…
x
Reference in New Issue
Block a user