Files
GarfieldandCopilot f9d07c95fb ✨ (bilimanga): 新增哔哩哔哩漫画书源并收进 src/
附协议分析笔记,沿用统一的 update.lua 与打包脚本。

Co-authored-by: Copilot <[email protected]>
2026-11-18 14:23:10 +08:00

20 lines
653 B
Lua

local PLUGIN_DIR = debug.getinfo(1, "S").source:match("^@(.*)/[^/]*$") or "."
if not package.path:find(PLUGIN_DIR .. "/?.lua", 1, true) then
package.path = PLUGIN_DIR .. "/?.lua;" .. package.path
end
local _ = require("moonsource_bilimanga.l10n")
local function lazy(module)
return setmetatable({}, { __index = function(_, key) return require(module)[key] end })
end
return {
api = 1,
provides = {
source = true,
},
meta = function() return require("moonsource_bilimanga.loadmeta") end,
new = function() return require("moonsource_bilimanga.source").new() end,
setting = lazy("moonsource_bilimanga.setting"),
}