Skip to content

[Bug] OPDS mime types for cbz/cbr are not the commonly used ones #2575

@WorldTeacher

Description

@WorldTeacher

What Went Wrong?

Another issue (#2484 ) reported not being able to download comic files using the opds. I confirmed this and reached out to Yomu and they confirmed that the error was partially on their side, but maybe in our opds implementation as well. Here's the part from the mail:

The app supports the following MIME types for CBZ and CBR comics, which are commonly used by OPDS servers:
application/x-cbz
application/x-cbr

It appears that BookLore has vendor-specific types for comics in the OPDS feed. I have now added these as an addition:
application/vnd.comicbook+zip
application/vnd.comicbook-rar

This change should be available in an upcoming v3.16.0 update, I hope this resolves the problem.

However, I think there might be an issue with BookLore's implementation as well. I noticed that the OPDS feed contains the application/vnd.comicbook+zip type for both CBZ and CBR books. As far as I know, the application/vnd.comicbook-rar type should be used for CBR comics.

When I tried to download CBR comics (file extension .cbr) the app failed to extract them. They cannot be recognised correctly by their type and zip/rar are different archive formats. Links to the IANA documentation are provided below, along with example screenshots and a feed extract.

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

- CBR Comic
application/vnd.comicbook-rar
https://www.iana.org/assignments/media-types/application/vnd.comicbook-rar

- BookLore
Version: v1.18.5
Docker: booklore/booklore:latest

How Can We Reproduce This?

  1. use yomu prior to 3.16.0
  2. use opds with cbz files
  3. observe that the cbz files are not present

What Should Have Happened?

files should show up / maybe mime types need to be added?

Screenshots or Error Messages (Optional)

No response

Any Ideas on How to Fix This? (Optional)

No response

Your Setup

Booklore 1.18.5
Yomu Reader
Docker
Unraid

Before Submitting

  • I've searched existing issues and confirmed this bug hasn't been reported yet

Edit:

Attach data sent from yomu dev
booklore-comic-issue.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions