MimeTypes icon indicating copy to clipboard operation
MimeTypes copied to clipboard

Wrong MIME types for comic book formats

Open rluetzner opened this issue 2 years ago • 2 comments

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:

rluetzner avatar Feb 14 '24 12:02 rluetzner

Definitely something I can send a pull request for. 🙂

rluetzner avatar Feb 14 '24 12:02 rluetzner

I just learned that application/x-cbr is deprecated. According to IANA, it should be

application/vnd.comicbook-rar and application/vnd.comicbook+zip.

rluetzner avatar Feb 14 '24 13:02 rluetzner