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

Commits on Feb 14, 2024

  1. Update comicbook file extensions

    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.
    rluetzner committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    52778e9 View commit details
    Browse the repository at this point in the history