♻️ 书源 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 7a09f7c834
commit 86b1f0c562
11 files changed
+26 -26

No files matched your search

@@ -62,10 +62,10 @@ end
---@return { cancel: fun() }
function Client.shelfAsync(account, cb)
local Settings = require("utils.settings")
if not Mapper.account(account) or require("source.auth").expired("ext.zymk") then
if not Mapper.account(account) or require("source.auth").expired("zymk") then
return SourceBase.defer(cb, nil, _("请先登录知音漫客"))
end
if Settings.getSource("ext.zymk").account ~= account then
if Settings.getSource("zymk").account ~= account then
return SourceBase.defer(cb, nil, _("登录状态已变化,请重试"))
end
if not require("ui/network/manager"):isConnected() then
@@ -75,7 +75,7 @@ function Client.shelfAsync(account, cb)
local cancelled = false
local job = Client.authAsync("/apinew/getuserrecord/", fields, function(data, err)
if cancelled then return end
if Settings.getSource("ext.zymk").account ~= account then
if Settings.getSource("zymk").account ~= account then
cb(nil, _("登录状态已变化,请重试")); return
end
local books = data and Mapper.shelf(data)