-
Notifications
You must be signed in to change notification settings - Fork 0
/
default_config.py
29 lines (22 loc) · 953 Bytes
/
default_config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Secret key for the app (used for cookies, etc)
APP_SECRET_KEY = ''
# Full path to the Calibre library (the directory must contain a valid
# metadata.db file)
CALIBRE_LIBRARY_PATH = '/data/calibre_library'
# List of formats to allow upload
CALIBRE_EXT_UP = ['TXT', 'PDF', 'EPUB', 'MOBI', 'AZW', 'AZW3', 'CBR',
'CBZ', 'CBT', 'DJVU', 'PRC', 'DOC', 'DOCX', 'FB2', 'HTML', 'RTF',
'ODT']
# List of formats supported as targets for conversion
CALIBRE_EXT_CONV = ['PDF', 'EPUB', 'MOBI', 'AZW3', 'DOCX', 'RTF', 'FB22',
'LIT', 'LRF', 'TXT', 'HTMLZ']
# Target format to favor when converting a book
FORMAT_PREFERRED = 'MOBI'
# Auto conversion table
AUTOCONVERT = {
'EPUB': 'MOBI' # Automatically convert EPUB to MOBI upon upload
}
# Directory to temporarily store uploaded or converted files
CALIBRE_TEMP_DIR = '/data/tmp'
# Path to store the internal calibre webui database
CALIBRE_WEBUI_DB_PATH = '/data/calibre_library'