mirror of
https://github.com/koreader/koreader
synced 2024-11-10 01:10:34 +00:00
83cde64bcc
joins calibre metadata search and calibre wireless connections into a single plugin search metadata changes: - search directly into calibre metadata files. - search can be performed on more than one library (configurable from a menu) - device scans now find all calibre libraries under a given root - search options can be configured from a menu. (case sensitive, find by title, author and path) - removed legacy global variables. - *option* to search from the reader - *option* to generate a cache of books for faster searches. calibre wireless connection changes: - keep track of books in a library (includes prunning books from calibre metadata if the file was deleted locally) - remove files on device from calibre - support password protected connections - FM integration: if we're in the inbox dir it will be updated each time a book is added or deleted. - disconnect when requested by calibre, available on newer calibre versions (+4.17) - remove unused opcodes. - better report of client name, version and device id - free disk space checks for all calibre versions - bump supported extensions to match what KOReader can handle. Users can override this with their own list of extensions (or from calibre, by configuring the wireless device).
38 lines
836 B
Lua
38 lines
836 B
Lua
--[[
|
|
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
|