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