loadmeta 返回函数,修 new() 时报 attempt to call a table; 插件描述统一成「月读书源:哔哩哔哩漫画」,main.lua 与其它书源一致。
9 lines
276 B
Lua
9 lines
276 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
|
|
|
|
return function()
|
|
return require("moonsource_bilimanga._meta")
|
|
end
|