From 072d960b68f5dbe2cd4858998800e9c194a32f84 Mon Sep 17 00:00:00 2001 From: Gauthier Date: Tue, 28 Jul 2020 23:24:31 +0800 Subject: [PATCH] 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 --- frontend/ui/widget/opdsbrowser.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/ui/widget/opdsbrowser.lua b/frontend/ui/widget/opdsbrowser.lua index af176587f..b373038f0 100644 --- a/frontend/ui/widget/opdsbrowser.lua +++ b/frontend/ui/widget/opdsbrowser.lua @@ -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", },