Add additional media types to OPDS Browser (#6443)

* 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
reviewable/pr6446/r1
Gauthier 4 years ago committed by GitHub
parent 744e933036
commit 072d960b68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -54,7 +54,12 @@ local OPDSBrowser = Menu:extend{
["application/x-mobipocket-ebook"] = "MOBI",
["application/x-mobi8-ebook"] = "AZW3",
["application/x-cbz"] = "CBZ",
["application/vnd.comicbook+zip"] = "CBZ",
["application/zip"] = "CBZ",
["application/x-cbr"] = "CBR",
["application/vnd.comicbook-rar"] = "CBR",
["application/x-rar-compressed"] = "CBR",
["application/vnd.rar"] = "CBR",
["application/djvu"] = "DJVU",
},

Loading…
Cancel
Save