Update Upload formats

pull/1409/head
Ozzieisaacs 4 years ago
parent 0138ff9e16
commit 64bebaa1d1

@ -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)

@ -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):

Loading…
Cancel
Save