Commit eaccc3f4 authored by OzzieIsaacs's avatar OzzieIsaacs

Merge branch 'master' of https://github.com/janeczku/calibre-web

parents e7126496 075c4c58
...@@ -263,7 +263,7 @@ def update_dir_stucture(book_id, calibrepath): ...@@ -263,7 +263,7 @@ def update_dir_stucture(book_id, calibrepath):
if authordir != new_authordir: if authordir != new_authordir:
new_author_path = os.path.join(os.path.join(calibrepath, new_authordir), os.path.basename(path)) new_author_path = os.path.join(os.path.join(calibrepath, new_authordir), os.path.basename(path))
os.rename(path, new_author_path) os.renames(path, new_author_path)
book.path = new_authordir + '/' + book.path.split('/')[1] book.path = new_authordir + '/' + book.path.split('/')[1]
db.session.commit() db.session.commit()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment