♻️ 书源 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 6379a117c2
commit 0174664163
15 files changed
+47 -47

No files matched your search

+2 -2
View File
@@ -9,7 +9,7 @@ local Assert = require("support.assert")
local JSON = require("support.json_stub")
package.loaded["json"] = JSON
local Stubs = require("support.stubs")
local cfg = require("utils.settings").getSource("ext.zhihu")
local cfg = require("utils.settings").getSource("zhihu")
cfg.cookie = "z_c0=progress-fixture"
local pending, sync_column = {}, false
local function request(url, options, cb, body)
@@ -104,7 +104,7 @@ local Auth = require("source.auth")
Auth.reset()
Client.putProgressAsync("2", .4, done)
pending[#pending].cb(nil, "HTTP 401", { code = 401 })
Assert.is_true(Auth.expired("ext.zhihu"))
Assert.is_true(Auth.expired("zhihu"))
Auth.reset()
cfg.cookie = nil
local count = #pending