Add .htmlz to supported filetypes (#14240)

Closes #13436.

Also see <https://wiki.mobileread.com/wiki/HTMLZ>.
This commit is contained in:
Frans de Jonge
2025-08-29 12:14:09 +02:00
committed by GitHub
parent 6c25d045eb
commit d3c5ee3d6f

View File

@@ -1548,6 +1548,7 @@ function CreDocument:register(registry)
registry:addProvider("htm", "text/html", self, 100)
registry:addProvider("html", "text/html", self, 100)
registry:addProvider("htm.zip", "application/zip", self, 100)
registry:addProvider("htmlz", "application/html+zip", self, 100) -- For calibre OPDS.
registry:addProvider("html.zip", "application/zip", self, 100)
registry:addProvider("html.zip", "application/html+zip", self, 100) -- Alternative mimetype for OPDS.
registry:addProvider("log", "text/plain", self)