🐛 修复书源加载失败与描述格式
loadmeta 返回函数,修 new() 时报 attempt to call a table; 插件描述统一成「月读书源:哔哩哔哩漫画」,main.lua 与其它书源一致。
This commit is contained in:
1 parent
455891353c
commit
4a031e00c5
5 files changed
+10
-16
No files matched your search
@@ -1,9 +1,5 @@
|
||||
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("gettext")
|
||||
return {
|
||||
fullname = "哔哩哔哩漫画书源",
|
||||
description = "moonsource-bilimanga",
|
||||
fullname = _("月读书源:哔哩哔哩漫画"),
|
||||
description = _("给月读增加「哔哩哔哩漫画」书源。需要同时安装月读,与平台官方无关。"),
|
||||
}
|
||||
@@ -1,10 +1,6 @@
|
||||
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")
|
||||
|
||||
--[[--
|
||||
KOReader 只认带 main.lua 的插件目录;书源本身不需要任何插件钩子,月读读取旁边的 moon_source.lua。
|
||||
--]]
|
||||
local WidgetContainer = require("ui/widget/container/widgetcontainer")
|
||||
|
||||
return WidgetContainer:extend{
|
||||
|
||||
@@ -13,7 +13,7 @@ return {
|
||||
provides = {
|
||||
source = true,
|
||||
},
|
||||
meta = function() return require("moonsource_bilimanga.loadmeta") end,
|
||||
meta = function() return require("moonsource_bilimanga.source").meta() end,
|
||||
new = function() return require("moonsource_bilimanga.source").new() end,
|
||||
setting = lazy("moonsource_bilimanga.setting"),
|
||||
}
|
||||
@@ -7,7 +7,7 @@ return {
|
||||
description = "哔哩哔哩漫画书源",
|
||||
abilities = {
|
||||
search = true,
|
||||
browse = false,
|
||||
browse = true,
|
||||
sync = true,
|
||||
progress = true,
|
||||
cover = true,
|
||||
|
||||
@@ -3,4 +3,6 @@ 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
|
||||
Reference in new issue
Block a user