1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-10-18 09:07:40 +00:00

Bugfixes for uploading books to GDrive with new worker

This commit is contained in:
OzzieIsaacs
2020-09-12 12:11:33 +02:00
parent b202ca5619
commit e29247774c
4 changed files with 447 additions and 202 deletions

View File

@@ -414,7 +414,7 @@ def update_dir_structure_file(book_id, calibrepath, first_author, orignal_filepa
src=new_path, dest=new_name, error=str(ex))
return False
def update_dir_structure_gdrive(book_id, first_author, original_filepath):
def update_dir_structure_gdrive(book_id, first_author):
error = False
book = calibre_db.get_book(book_id)
path = book.path
@@ -518,7 +518,7 @@ def uniq(inpt):
def update_dir_stucture(book_id, calibrepath, first_author=None, orignal_filepath=None, db_filename=None):
if config.config_use_google_drive:
return update_dir_structure_gdrive(book_id, first_author, orignal_filepath, db_filename)
return update_dir_structure_gdrive(book_id, first_author)
else:
return update_dir_structure_file(book_id, calibrepath, first_author, orignal_filepath, db_filename)