From a29847047949e068a1e48f4cb6c75b554b2a52cc Mon Sep 17 00:00:00 2001 From: OzzieIsaacs Date: Sun, 8 Jul 2018 10:41:00 +0200 Subject: [PATCH] Fix #526. Books are now initially stored according to their id. --- cps/web.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cps/web.py b/cps/web.py index 403c40e1..802fa971 100755 --- a/cps/web.py +++ b/cps/web.py @@ -3353,6 +3353,12 @@ def upload(): db.session.add(db_book) db.session.flush() # flush content get db_book.id avalible + # ToDo: Book should be moved to foldername with id in it + if config.config_use_google_drive: + error = helper.update_dir_structure_gdrive(db_book.id) + else: + error = helper.update_dir_stucture(db_book.id, config.config_calibre_dir) + # ToDo: Handle error # add comment upload_comment = Markup(meta.description).unescape() if upload_comment != "":