diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 31105b7..78ddbcc 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -1,7 +1,7 @@ CONTRIBUTORS This file is automatically generated. DO NOT EDIT MANUALLY. -Generated on: 2025-08-19T15:49:39.694344Z +Generated on: 2025-08-20T07:54:34.638891Z Upstream project: https://github.com/janeczku/calibre-web Fork project (Calibre-Web Automated, since 2024): https://github.com/crocodilestick/calibre-web-automated @@ -289,7 +289,7 @@ Copyright (C) 2024-2025 Calibre-Web Automated contributors - zhiyue (1 commits) # Fork Contributors (crocodilestick/calibre-web-automated) -- crocodilestick (515 commits) +- crocodilestick (520 commits) - jmarmstrong1207 (73 commits) - demitrix (30 commits) - sirwolfgang (22 commits) diff --git a/scripts/ingest_processor.py b/scripts/ingest_processor.py index 32884b3..aab1cda 100644 --- a/scripts/ingest_processor.py +++ b/scripts/ingest_processor.py @@ -91,7 +91,7 @@ class NewBookProcessor: def get_split_library(self) -> dict[str, str] | None: """Checks whether or not the user has split library enabled. Returns None if they don't and the path of the Split Library location if True.""" - con = sqlite3.connect("/config/app.db", timeout=30) + con = sqlite3.connect("/config/app.db", timeout=30) cur = con.cursor() split_library = cur.execute('SELECT config_calibre_split FROM settings;').fetchone()[0] @@ -100,9 +100,9 @@ class NewBookProcessor: db_path = cur.execute('SELECT config_calibre_dir FROM settings;').fetchone()[0] con.close() return { - "split_path":split_path, - "db_path":db_path - } + "split_path": split_path, + "db_path": db_path, + } else: con.close() return None @@ -130,11 +130,11 @@ class NewBookProcessor: return can_convert, input_format def is_supported_audiobook(self) -> bool: - input_format = Path(self.filepath).suffix[1:] - if input_format in self.supported_audiobook_formats: - return True - else: - return False + input_format = Path(self.filepath).suffix[1:] + if input_format in self.supported_audiobook_formats: + return True + else: + return False def backup(self, input_file, backup_type): try: