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,6 +539,7 @@ class MTP_DEVICE(BASE):
|
||||
data = BytesIO()
|
||||
self.get_mtp_file(index, data)
|
||||
tfname = data.getvalue().decode().strip()
|
||||
if tfname:
|
||||
thumbnail = storage.find_path(('system', 'thumbnails', tfname))
|
||||
if thumbnail is not None:
|
||||
self.delete_file_or_folder(thumbnail)
|
||||
|
Loading…
x
Reference in New Issue
Block a user