mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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
This commit is contained in:
@@ -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",
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user