Mango icon indicating copy to clipboard operation
Mango copied to clipboard

[Bug Report]

Open CaligulaCa3sar opened this issue 5 years ago • 5 comments

Describe the bug Cannot view or download the files served by the Docker image from an OPDS reader. I am able to add the server to Chunky or Marvin 3 on iPad as expected and browse the directory structure. The comic book files, however, can't be accessed. In Chunky, the file titles are just greyed out and in Marvin 3 the files produce the errors in the attached screenshots when selected. Seems to be a MIME-type issue?

IMG_0029 Resized IMG_0030 Resized

To Reproduce Steps to reproduce the behavior:

  1. Browse using an OPDS reader like Chunky or Marvin 3.
  2. Click on file.
  3. In Chunky, cannot do anything, in Marvin 3 error dialogue appears.

Expected behavior The files should be able to be viewed or downloaded in the reader.

Environment (please complete the following information):

  • OS: Docker running on Synology DSM
  • Browser: Chunky or Marvin 3
  • v0.11.0

Docker (if you are running Mango in a Docker container)


port: 9000
base_url: /
session_secret: mango-session-secret
library_path: /mnt/Manga
db_path: /root/mango/mango.db
scan_interval_minutes: 5
log_level: info
upload_path: /root/mango/uploads
mangadex:
base_url: https://mangadex.org
api_url: https://mangadex.org/api
download_wait_seconds: 5
download_retries: 4
download_queue_db_path: /root/mango/queue.db
chapter_rename_rule: '[Vol.{volume} ][Ch.{chapter} ]{title|id}'
manga_rename_rule: '{title}'

Additional context Add any other context about the problem here. Add screenshots if applicable.

CaligulaCa3sar avatar Sep 11 '20 14:09 CaligulaCa3sar

Hi there! From your second screenshot, it looks like Marvin 3 is not recognizing the MIME type application/vnd.comicbook+zip, but it is the correct MIME type for CBZ (see https://en.wikipedia.org/wiki/Comic_book_archive). Have you tried any other OPDS servers? Does Marvin 3 work when viewing the CBZ files served by them?

I think KyBook 3 works quite well with Mango. Perhaps you can give it a try?

hkalexling avatar Sep 11 '20 15:09 hkalexling

Well, I tried with KyBook 3 as per your recommendation and it does work! I'm very surprised that Chunky didn't work as I have previously used that with Ubooquity with no problems. I have to assume Ubooquity serves the files as a different MIME-type to Mango then.

Thanks, this is obviously not a bug from Mango's perspective.

CaligulaCa3sar avatar Sep 11 '20 15:09 CaligulaCa3sar

I see. I will try Ubooquity and inspect its OPDS feed to see if we can support these readers. Thanks for letting me know!

hkalexling avatar Sep 11 '20 18:09 hkalexling

Suddenly remembered this today so I did a quick test and produced the attached screenshot. Left-hand pane is from Ubooquity, right-hand from Mango. Ubooquity is apparently serving the files as an octet-stream which Chunky (and presumably Marvin 3) is happy with, but it doesn't like the vnd.comicbook+zip type.

Screenshot from 2021-05-07 21-47-11_edit

CaligulaCa3sar avatar May 07 '21 21:05 CaligulaCa3sar

Thanks! I think application/octet-stream is just the generic type for binary data. Let me try and see if changing the type helps.

hkalexling avatar May 09 '21 00:05 hkalexling