♻️ 书源 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 088a1a2d94
commit 241cea9599
12 files changed
+21 -21

No files matched your search

+3 -3
View File
@@ -162,7 +162,7 @@ local stored
package.preload["book.books_db"] = function()
return {
reconcile = function(id, books)
Assert.eq(id, "ext.fanqie")
Assert.eq(id, "fanqie")
stored = books
return true, 0
end,
@@ -214,7 +214,7 @@ package.preload["source.chapter"] = function()
cb()
end,
cacheAllAsync = function(source, identity, fetchContent, on_progress, cb, interval)
Assert.eq(source.id, "ext.fanqie")
Assert.eq(source.id, "fanqie")
Assert.eq(interval, 6)
on_progress(1, 1)
fetchContent(identity, { idx = 1, uid = "9876543210987654321", title = "第一章" }, function(payload)
@@ -270,7 +270,7 @@ do
source_cfg.category_as_group = nil
end
local ref = { source_id = "ext.fanqie", stable_id = "1234567890123456789" }
local ref = { source_id = "fanqie", stable_id = "1234567890123456789" }
src:openBookAsync(ref, { chapter_idx = 1 }, function(path)
Assert.eq(path, "ready.html")
count = count + 1