diff --git a/cps/constants.py b/cps/constants.py index e697e048..bbede0a7 100644 --- a/cps/constants.py +++ b/cps/constants.py @@ -143,14 +143,15 @@ del env_CALIBRE_PORT EXTENSIONS_AUDIO = {'mp3', 'ogg', 'opus', 'wav', 'flac', 'm4a', 'm4b'} -EXTENSIONS_VIDEO = {'mp4', 'avi', 'mkv', 'webm'} +EXTENSIONS_VIDEO = {'mp4', 'avi', 'mkv', 'webm', 'm4v', 'mov', 'wmv', 'mpg', 'mpeg', 'flv', '3gp', '3g2', 'ogv'} EXTENSIONS_CONVERT_FROM = ['pdf', 'epub', 'mobi', 'azw3', 'docx', 'rtf', 'fb2', 'lit', 'lrf', 'txt', 'htmlz', 'rtf', 'odt', 'cbz', 'cbr'] EXTENSIONS_CONVERT_TO = ['pdf', 'epub', 'mobi', 'azw3', 'docx', 'rtf', 'fb2', 'lit', 'lrf', 'txt', 'htmlz', 'rtf', 'odt'] EXTENSIONS_UPLOAD = {'txt', 'pdf', 'epub', 'kepub', 'mobi', 'azw', 'azw3', 'cbr', 'cbz', 'cbt', 'djvu', 'djv', 'prc', 'doc', 'docx', 'fb2', 'html', 'rtf', 'lit', 'odt', 'mp3', 'mp4', 'ogg', - 'opus', 'wav', 'flac', 'm4a', 'm4b'} + 'opus', 'wav', 'flac', 'm4a', 'm4b', "avi", "mkv", "webm", "m4v", "mov", "wmv", "mpg", + "mpeg", "flv", "3gp", "3g2", "ogv", "jpg", "jpeg", "png", "gif", "bmp", "tif", "tiff"} def has_flag(value, bit_flag): diff --git a/cps/static/css/style.css b/cps/static/css/style.css index 0bab5b53..fcb05cde 100644 --- a/cps/static/css/style.css +++ b/cps/static/css/style.css @@ -147,8 +147,11 @@ table .bg-dark-danger a { color: #fff; } .cover { margin-bottom: 10px; } .container-fluid .book .cover { - height: 225px; + height: auto; position: relative; + display: flex; + align-items: center; + justify-content: center; } .author-link img {