Files
Garfield 4a031e00c5 🐛 修复书源加载失败与描述格式
loadmeta 返回函数,修 new() 时报 attempt to call a table;
插件描述统一成「月读书源:哔哩哔哩漫画」,main.lua 与其它书源一致。
2026-11-27 07:43:52 +08:00

20 lines
658 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.source").meta() end,
new = function() return require("moonsource_bilimanga.source").new() end,
setting = lazy("moonsource_bilimanga.setting"),
}