moved get_calibre_binarypath() to helper.py

This commit is contained in:
Thore Schillmann
2022-07-07 11:41:51 +00:00
parent 0d34f41a48
commit fc004f4f0c
5 changed files with 20 additions and 19 deletions
+1 -1
View File
@@ -154,7 +154,7 @@ EXTENSIONS_UPLOAD = {'txt', 'pdf', 'epub', 'kepub', 'mobi', 'azw', 'azw3', 'cbr'
_extension = ""
if sys.platform == "win32":
_extension = ".exe"
SUPPORTED_CALIBRE_BINARIES = [binary + _extension for binary in ["ebook-convert", "calibredb"]]
SUPPORTED_CALIBRE_BINARIES = {binary:binary + _extension for binary in ["ebook-convert", "calibredb"]}
def has_flag(value, bit_flag):