♻️ 书源 id 去掉 ext. 前缀,沿用旧内置源数据
Co-authored-by: Copilot <[email protected]>
This commit is contained in:
1 parent
1698ed8412
commit
c029847ffd
10 files changed
+23
-23
No files matched your search
@@ -56,7 +56,7 @@ function source:loadTocAsync(_identity, cb)
|
||||
return { cancel = function() end }
|
||||
end
|
||||
local page, err
|
||||
source:bookReviewsAsync({ source_id = "ext.douban", stable_id = "101" }, function(value, reason)
|
||||
source:bookReviewsAsync({ source_id = "douban", stable_id = "101" }, function(value, reason)
|
||||
page, err = value, reason
|
||||
end)
|
||||
Assert.is_nil(err)
|
||||
@@ -65,7 +65,7 @@ Assert.matches(page.items[1].text, "Review")
|
||||
Assert.is_false(page.items[1].text:find("<p>", 1, true) ~= nil)
|
||||
Assert.is_nil(requests[1].opts.headers.Cookie)
|
||||
Assert.eq(JSON.decode(requests[1].opts.body).variables.worksId, "101")
|
||||
local identity = { source_id = "ext.douban", stable_id = "101", chapter_idx = 1 }
|
||||
local identity = { source_id = "douban", stable_id = "101", chapter_idx = 1 }
|
||||
source:paragraphReviewPageAsync(identity, "chapter", 0, function(value, reason) page, err = value, reason end)
|
||||
Assert.is_nil(err)
|
||||
Assert.len(page.items, 20)
|
||||
|
||||
Reference in new issue
Block a user