mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Add another mimetype alias for FB2 files for OPDS (#7932)
I've encountered an issue when Calibre Content Server's OPDS feed produced ``text/fb2-xml`` mimetype. Don't know if it is actually Calibre to blame, but thought this simple fix will save some poor souls' time.
This commit is contained in:
@@ -1342,6 +1342,7 @@ function CreDocument:register(registry)
|
||||
registry:addProvider("epub", "application/epub+zip", self, 100)
|
||||
registry:addProvider("epub3", "application/epub+zip", self, 100)
|
||||
registry:addProvider("fb2", "application/fb2", self, 90)
|
||||
registry:addProvider("fb2", "text/fb2+xml", self, 90) -- Alternative mimetype for OPDS.
|
||||
registry:addProvider("fb2.zip", "application/zip", self, 90)
|
||||
registry:addProvider("fb2.zip", "application/fb2+zip", self, 90) -- Alternative mimetype for OPDS.
|
||||
registry:addProvider("fb3", "application/fb3", self, 90)
|
||||
|
||||
Reference in New Issue
Block a user