Merge remote-tracking branch 'github/master'

Improvement for #814
This commit is contained in:
Ozzieisaacs
2019-02-16 08:03:42 +01:00
13 changed files with 283 additions and 434 deletions
+8 -1
View File
@@ -61,7 +61,14 @@ MATURE_CONTENT = 2048
SIDEBAR_PUBLISHER = 4096
DEFAULT_PASS = "admin123"
DEFAULT_PORT = int(os.environ.get("CALIBRE_PORT", 8083))
try:
DEFAULT_PORT = int(os.environ.get("CALIBRE_PORT", 8083))
except ValueError:
'''value = re.findall('.*?(\d+)$',os.environ.get("CALIBRE_PORT"))
if len(value):
DEFAULT_PORT = int(value[0])
else:'''
DEFAULT_PORT = 8083
UPDATE_STABLE = 0
AUTO_UPDATE_STABLE = 1