✨ 初始提交:月读第三方书源插件集合

每个书源一个独立插件目录,含微信读书公众号订阅、书架导入等完整功能。

Co-authored-by: Copilot <[email protected]>
This commit is contained in:
GarfieldandCopilot committed 2026-11-16 12:08:03 +08:00
commit ed44254f1c
54 files changed
+15615

No files matched your search

@@ -0,0 +1,21 @@
--[[--
微信读书目录缓存:共用 ``source.toc``,只多一个目录格式判断。
@module koplugin.book.moonsource_weread.toc
--]]
local Toc = setmetatable({}, { __index = require("source.toc") })
--- 目录格式版本,Mapper.chapters 写在首章。3:网文章名补「第 N 章」;5:anchors 去掉同名同层的自锚点。
Toc.FORMAT_VERSION = 5
--- 当前目录是否为最新格式;旧缓存返回 false,触发源重新拉取。
---@param list BookChapter[]|nil
---@return boolean
function Toc.isCurrent(list)
return type(list) == "table"
and type(list[1]) == "table"
and tonumber(list[1].toc_version) == Toc.FORMAT_VERSION
end
return Toc