♻️ 书源 id 去掉 ext. 前缀,沿用旧内置源数据

Co-authored-by: Copilot <[email protected]>
This commit is contained in:
GarfieldandCopilot committed 2026-11-16 14:07:45 +08:00
1 parent 01e572a5ee
commit f8ad3f73a6
29 files changed
+173 -173

No files matched your search

@@ -51,7 +51,7 @@ Source.__index = Source
--- 构造微信读书源实例。
---@return WechatSource
function WeChat.new()
local cfg = require("utils.settings").getSource("ext.weread")
local cfg = require("utils.settings").getSource("weread")
local meta = WeChat.meta()
---@type WechatSource
return setmetatable({
@@ -945,7 +945,7 @@ end
local function openSerial(source_id, stable_id)
local book = require("book.books_db").get(source_id, stable_id)
local meta = book and book.meta
local data = meta and meta.source and meta.source["ext.weread"]
local data = meta and meta.source and meta.source["weread"]
local pay = tonumber(data and data.pay_type or meta and meta.weread_pay) or 0
local typ = tonumber(data and data.book_type or meta and meta.weread_type)
local ended = data and data.ended