Fixes for failed email and conversions with gdrive

This commit is contained in:
Ozzieisaacs
2020-10-04 13:59:33 +02:00
parent eb37e3a52b
commit e3f4f24c3e
3 changed files with 8 additions and 7 deletions
+3 -3
View File
@@ -51,6 +51,8 @@ class TaskConvert(CalibreTask):
return error_message
filename = self._convert_ebook_format()
if config.config_use_google_drive:
os.remove(self.file_path + u'.' + self.settings['old_book_format'].lower())
if filename:
if config.config_use_google_drive:
@@ -117,9 +119,7 @@ class TaskConvert(CalibreTask):
return
self.results['path'] = cur_book.path
self.results['title'] = cur_book.title
if config.config_use_google_drive:
os.remove(file_path + format_old_ext)
else:
if not config.config_use_google_drive:
self._handleSuccess()
return os.path.basename(file_path + format_new_ext)
else: