♻️ 书源 id 去掉 ext. 前缀,沿用旧内置源数据
Co-authored-by: Copilot <[email protected]>
This commit is contained in:
1 parent
b342ac7ea1
commit
742da8a95d
6 files changed
+6
-6
No files matched your search
@@ -36,7 +36,7 @@ Assert.eq(found[1].title, "三体宇宙")
|
||||
Assert.eq(found[1].authors, "刘慈欣")
|
||||
Assert.eq(found[1].intro, "星际")
|
||||
Assert.eq(found[1].cover, "https://img/a.jpg")
|
||||
Assert.eq(found[1].source_id, "ext.tadu")
|
||||
Assert.eq(found[1].source_id, "tadu")
|
||||
|
||||
local home, home_err = Mapper.shelfPage("<title>小说,小说网-塔读小说网|免费阅读最新热门小说</title>")
|
||||
Assert.is_nil(home)
|
||||
|
||||
@@ -211,7 +211,7 @@ Chapter.openAsync = function(_source, identity, _book, _opts, ops, cb)
|
||||
end)
|
||||
end
|
||||
require("moonsource_tadu.source").new():openBookAsync({
|
||||
source_id = "ext.tadu", stable_id = "font-fixture", book = { title = "书名" },
|
||||
source_id = "tadu", stable_id = "font-fixture", book = { title = "书名" },
|
||||
}, { chapter_idx = 1 }, function() end)
|
||||
Chapter.openAsync = open_async
|
||||
Assert.is_true(document:find(decoded, 1, true) ~= nil)
|
||||
|
||||
Reference in new issue
Block a user