From 64bebaa1d10005403d871397dedbbf20c10533ca Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Sat, 2 May 2020 10:46:00 +0200 Subject: [PATCH] Update Upload formats --- cps/config_sql.py | 2 +- cps/constants.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/cps/config_sql.py b/cps/config_sql.py index 2882e5df..22f57131 100644 --- a/cps/config_sql.py +++ b/cps/config_sql.py @@ -112,7 +112,7 @@ class _Settings(_Base): config_converterpath = Column(String) config_calibre = Column(String) config_rarfile_location = Column(String) - config_upload_formats = Column(String) + config_upload_formats = Column(String, default=constants.EXTENSIONS_UPLOAD) config_updatechannel = Column(Integer, default=constants.UPDATE_STABLE) diff --git a/cps/constants.py b/cps/constants.py index 586172f7..fffc4feb 100644 --- a/cps/constants.py +++ b/cps/constants.py @@ -114,8 +114,6 @@ EXTENSIONS_AUDIO = {'mp3', 'm4a', 'm4b'} EXTENSIONS_CONVERT = {'pdf', 'epub', 'mobi', 'azw3', 'docx', 'rtf', 'fb2', 'lit', 'lrf', 'txt', 'htmlz', 'rtf', 'odt'} EXTENSIONS_UPLOAD = {'txt', 'pdf', 'epub', 'mobi', 'azw', 'azw3', 'cbr', 'cbz', 'cbt', 'djvu', 'prc', 'doc', 'docx', 'fb2', 'html', 'rtf', 'lit', 'odt', 'mp3', 'm4a', 'm4b'} -# EXTENSIONS_READER = set(['txt', 'pdf', 'epub', 'zip', 'cbz', 'tar', 'cbt'] + -# (['rar','cbr'] if feature_support['rar'] else [])) def has_flag(value, bit_flag):