2
0
mirror of https://github.com/koreader/koreader synced 2024-11-18 03:25:46 +00:00
koreader/plugins/calibre.koplugin/extensions.lua

38 lines
836 B
Lua
Raw Normal View History

--[[
File formats supported by KOReader. These are reported when the device talks with calibre wireless server.
Note that the server can allow or restrict file formats based on calibre configuration for each device.
Optionally KOReader users can set their own supported formats to report to the server.
--]]
local user_path = require("datastorage"):getDataDir() .. "/calibre-extensions.lua"
local ok, extensions = pcall(dofile, user_path)
if ok then
return extensions
else
return {
"azw",
"cbz",
"chm",
"djv",
"djvu",
"doc",
"docx",
"epub",
"fb2",
"htm",
"html",
"md",
"mobi",
"pdb",
"pdf",
"prc",
"rtf",
"txt",
"xhtml",
"xps",
"zip",
}
end