♻️ 书源 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 73a4f219c8
commit 0a69fe7728
8 files changed
+15 -15

No files matched your search

+2 -2
View File
@@ -36,7 +36,7 @@ package.preload["source.registry"] = function()
end
package.preload["book.books_db"] = function()
return { prepareAccountSync = function(id, shelf_add)
Assert.eq(id, "ext.qidian", "只准备当前源")
Assert.eq(id, "qidian", "只准备当前源")
Assert.is_true(shelf_add)
Assert.not_nil(cfg.cookie, "成功准备同步之后才替换凭据")
cleared = cleared + 1
@@ -45,7 +45,7 @@ package.preload["book.books_db"] = function()
end
package.preload["reader.session"] = function()
return { current = function() return {
identity = { source_id = "ext.qidian" }, ui = { onClose = function() closed = closed + 1 end },
identity = { source_id = "qidian" }, ui = { onClose = function() closed = closed + 1 end },
} end }
end
local CookieLogin = require("source.cookie_login")