From f91a855dd760261085619bf1cc7cec9ab43b2d92 Mon Sep 17 00:00:00 2001 From: Gauthier Date: Wed, 29 Jul 2020 13:49:04 +0800 Subject: [PATCH] add more media types to OPDS browser (#6450) following #6443 i thought i would check the other types application/x-mobi8-ebook is replaced by application/vnd.amazon.mobi8-ebook (see https://www.iana.org/assignments/media-types/application/vnd.amazon.mobi8-ebook) application/djvu doesn't seem to be an official one. image/x-djvu was the previous one, and is replaced by image/vnd.djvu (https://www.iana.org/assignments/media-types/image/vnd.djvu) --- frontend/ui/widget/opdsbrowser.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/ui/widget/opdsbrowser.lua b/frontend/ui/widget/opdsbrowser.lua index b373038f0..496836826 100644 --- a/frontend/ui/widget/opdsbrowser.lua +++ b/frontend/ui/widget/opdsbrowser.lua @@ -53,6 +53,7 @@ local OPDSBrowser = Menu:extend{ ["text/plain"] = "TXT", ["application/x-mobipocket-ebook"] = "MOBI", ["application/x-mobi8-ebook"] = "AZW3", + ["application/vnd.amazon.mobi8-ebook"] = "AZW3", ["application/x-cbz"] = "CBZ", ["application/vnd.comicbook+zip"] = "CBZ", ["application/zip"] = "CBZ", @@ -61,6 +62,8 @@ local OPDSBrowser = Menu:extend{ ["application/x-rar-compressed"] = "CBR", ["application/vnd.rar"] = "CBR", ["application/djvu"] = "DJVU", + ["image/x-djvu"] = "DJVU", + ["image/vnd.djvu"] = "DJVU", }, width = Screen:getWidth(),