Add additional MIME types to OPDS Browser#5940
Add additional MIME types to OPDS Browser#5940Frenzie merged 3 commits intokoreader:masterfrom jstirling:master
Conversation
added a slew of new mime types to the OPDS browser
spaces not tabs
dialing it back...
|
Obviously, we don't support all added formats, but it seems this list is just used to filter/show the downloads format list - so, I guess on android, one could be happy to be able to download a MP3 version of a book from some OPDS server :). |
|
it only shows formats that exist on the OPDS server. So having more formats doesn't clutter the view unless someone has a ton of different formats for a single book. I removed all but CBZ and CBR now, but can add them back (minus the duplicates that caused issues) if you'd prefer. I just figured I'd add them originally to prevent someone having this same issue with a different type. Seems unlikely though so might not be an issue. |
| ["application/x-mobipocket-ebook"] = "MOBI", | ||
| ["application/x-mobi8-ebook"] = "AZW3", | ||
| ["application/x-cbz"] = "CBZ", | ||
| ["application/x-cbr"] = "CBR", |
There was a problem hiding this comment.
we could also have djvu here
added a few new mime types to the OPDS browser as a temporary workaround for koreader#5478
* Add additional media types to OPDS Browser The media types for CBZ and CBR (added in #5940) are deprecated, and replaced by `vnd.comicbook+zip` and `vnd.comicbook+rar`. In addition, many OPDS servers will use the actual media type of the file, ie `application/zip` and `application/x-rar-compressed`. See here about the new `vnd` types: - https://www.iana.org/assignments/media-types/application/vnd.comicbook+zip - https://www.iana.org/assignments/media-types/application/vnd.comicbook-rar * added vnd.rar also
Updating the OPDS browser formats list to include CBR and CBZ to bide time until the DocumentRegistry rework
This change is