MimeTypes
MimeTypes copied to clipboard
Wrong MIME types for comic book formats
Independent of the file extensions, this library always returns application/x-cbr. This is incorrect, as there are specific MIME types for all the extensions, e.g. application/x-cbz or application/x-cb7.
To understand the impact, see the following issues in the Jellyfin project:
- https://github.com/jellyfin/jellyfin-plugin-opds/issues/38 and
- https://github.com/jellyfin/jellyfin/issues/11009
.
Here's a tl;dr: cbr (a.k.a. Rar) is a proprietary compression algorithm, so most FOSS eReaders will not accept it. :slightly_smiling_face:
Definitely something I can send a pull request for. 🙂
I just learned that application/x-cbr is deprecated. According to IANA, it should be
application/vnd.comicbook-rar and application/vnd.comicbook+zip.