♻️ 书源 id 去掉 ext. 前缀,沿用旧内置源数据
Co-authored-by: Copilot <[email protected]>
This commit is contained in:
1 parent
73a4f219c8
commit
0a69fe7728
8 files changed
+15
-15
No files matched your search
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user