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:
1 parent
a7bbf24f87
commit
246b402d9c
1 file changed
+1
@@ -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