diff --git a/cps/__init__.py b/cps/__init__.py index 6821d507..d68306de 100755 --- a/cps/__init__.py +++ b/cps/__init__.py @@ -62,10 +62,10 @@ mimetypes.add_type('application/x-mobipocket-ebook', '.mobi') mimetypes.add_type('application/x-mobipocket-ebook', '.prc') mimetypes.add_type('application/vnd.amazon.ebook', '.azw') mimetypes.add_type('application/x-mobi8-ebook', '.azw3') -mimetypes.add_type('application/x-cbr', '.cbr') -mimetypes.add_type('application/x-cbz', '.cbz') -mimetypes.add_type('application/x-cbt', '.cbt') -mimetypes.add_type('application/x-cb7', '.cb7') +mimetypes.add_type('application/x-rar', '.cbr') +mimetypes.add_type('application/zip', '.cbz') +mimetypes.add_type('application/x-tar', '.cbt') +mimetypes.add_type('application/x-7z-compressed', '.cb7') mimetypes.add_type('image/vnd.djv', '.djv') mimetypes.add_type('image/vnd.djv', '.djvu') mimetypes.add_type('application/mpeg', '.mpeg') diff --git a/setup.cfg b/setup.cfg index ac832da9..570c66d1 100644 --- a/setup.cfg +++ b/setup.cfg @@ -59,6 +59,7 @@ install_requires = advocate>=1.0.0,<1.1.0 Flask-Limiter>=2.3.0,<3.6.0 regex>=2022.3.2,<2024.2.25 + python-magic>=0.4.27,<0.5.0 [options.packages.find] diff --git a/test/Calibre-Web TestSummary_Linux.html b/test/Calibre-Web TestSummary_Linux.html index 1fc3469c..34d29396 100644 --- a/test/Calibre-Web TestSummary_Linux.html +++ b/test/Calibre-Web TestSummary_Linux.html @@ -37,20 +37,20 @@
-

Start Time: 2024-05-11 18:39:24

+

Start Time: 2024-06-23 19:26:37

-

Stop Time: 2024-05-12 01:48:22

+

Stop Time: 2024-06-24 02:18:31

-

Duration: 5h 59 min

+

Duration: 5h 39 min

@@ -234,11 +234,11 @@ - + TestBackupMetadata 21 - 21 - 0 + 20 + 1 0 0 @@ -410,11 +410,31 @@ - +
TestBackupMetadata - test_backup_change_custom_rating
- PASS + +
+ FAIL +
+ + + + @@ -1005,12 +1025,12 @@ - + TestEditAdditionalBooks 20 - 17 - 1 - 0 + 7 + 3 + 8 2 Detail @@ -1019,38 +1039,120 @@ - +
TestEditAdditionalBooks - test_cbz_comicinfo
- PASS + +
+ ERROR +
+ + + + - +
TestEditAdditionalBooks - test_change_upload_formats
- PASS + +
+ FAIL +
+ + + + - +
TestEditAdditionalBooks - test_delete_book
- PASS + +
+ ERROR +
+ + + + - +
TestEditAdditionalBooks - test_delete_role
- PASS + +
+ FAIL +
+ + + + @@ -1100,55 +1202,26 @@ - +
TestEditAdditionalBooks - test_title_sort
- PASS - - - - - - -
TestEditAdditionalBooks - test_upload_cbz_coverformats
- - PASS - - - - - - -
TestEditAdditionalBooks - test_upload_edit_role
- - PASS - - - - - - -
TestEditAdditionalBooks - test_upload_metadata_cb7
-
- FAIL + FAIL
-