♻️ 书源 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 818a3d9067
commit a8ce4da366
13 files changed
+42 -42

No files matched your search

@@ -154,7 +154,7 @@ Setting.browser = {
icon = "https://e.m.jd.com/toc-web/ico.png",
isAuthorized = function()
return require("moonsource_jdread.auth").hasSession()
and not require("source.auth").expired("ext.jdread")
and not require("source.auth").expired("jdread")
end,
apply = function(payload, cb)
return require("moonsource_jdread.auth").importBrowserAsync(payload, function(ok, err)
@@ -180,7 +180,7 @@ function Setting.rows()
CookieLogin.browserRow(),
}
if not Auth.hasSession() then return rows end
rows[#rows + 1] = require("source.logout").row("ext.jdread", _("确定退出京东读书账号?"), Auth.clearSession)
rows[#rows + 1] = require("source.logout").row("jdread", _("确定退出京东读书账号?"), Auth.clearSession)
return rows
end