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

Added CACHE_DIR env variable, graceful handling when APScheduler is not installed

This commit is contained in:
mmonkey
2021-09-19 22:45:19 -05:00
parent d648785471
commit 8bee2b9552
5 changed files with 40 additions and 16 deletions

View File

@@ -405,6 +405,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):
error = False
book = calibre_db.get_book(book_id)
@@ -505,6 +506,7 @@ def uniq(inpt):
output.append(x)
return output
def check_email(email):
email = valid_email(email)
if ub.session.query(ub.User).filter(func.lower(ub.User.email) == email.lower()).first():