Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update comicbook file extensions #24

Closed
wants to merge 1 commit into from

Conversation

rluetzner
Copy link

cb7, cba, cbr, cbt and cbz all refer to different types of digital comicbooks. The last letter of the extension indicates the compression algorithm that was used: 7zip, arc, rar, tar or zip.

All these filetypes used to have the application/x-cbr MIME type assigned to them. However, that has since been deprecated and was replaced with

  • application/vnd.comicbook-rar for rar compressed files and
  • application/vnd.comicbook+zip for rar compressed files.

Only these two are officially listed by IANA

https://www.iana.org/assignments/media-types/application/vnd.comicbook+zip

. cbr and cbz are by far the most common file extensions for comicbooks.

There's no official MIME type for cb7, cba or cbt files. However, with rar being a proprietary compression algorithm, FOSS applications will often refuse to handle files that identify themselves as application/x-cbr, so I decided to assign extension specific MIME types to them. I've seen these being used by other applications, specifically comic book readers.

I've read through the docs on iana.org, but haven't figured out why they chose -rar, but +zip.

This fixes #23.

cb7, cba, cbr, cbt and cbz all refer to different types of digital
comicbooks. The last letter of the extension indicates the compression
algorithm that was used: 7zip, arc, rar, tar or zip.

All these filetypes used to have the `application/x-cbr` MIME type
assigned to them. However, that has since been deprecated and was
replaced with

- `application/vnd.comicbook-rar` for rar compressed files and
- `application/vnd.comicbook+zip` for rar compressed files.

Only these two are officially listed by IANA

https://www.iana.org/assignments/media-types/application/vnd.comicbook+zip

. cbr and cbz are by far the most common file extensions for comicbooks.

There's no official MIME type for cb7, cba or cbt files. However, with
rar being a proprietary compression algorithm, FOSS applications will
often refuse to handle files that identify themselves as
`application/x-cbr`, so I decided to assign extension specific MIME
types to them. I've seen these being used by other applications,
specifically comic book readers.

I've read through the docs on iana.org, but haven't figured out why they
chose `-rar`, but `+zip`.

This fixes khellang#23.
{ "cbr", "application/x-cbr" },
{ "cbt", "application/x-cbr" },
{ "cbz", "application/x-cbr" },
{ "cb7", "application/x-cb7" },
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is generated based on https://github.com/jshttp/mime-db and metadata changes should be submitted upstream before re-generating this file.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for explaining and sorry for my late response. I've opened up an issue upstream, because I'm not good enough with JS to fix it myself.

jshttp/mime-db#321

@rluetzner
Copy link
Author

See jshttp/mime-db#321.

@rluetzner rluetzner closed this Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong MIME types for comic book formats
2 participants