♻️ 书源 id 去掉 ext. 前缀,沿用旧内置源数据
Co-authored-by: Copilot <[email protected]>
This commit is contained in:
1 parent
ff11bb481a
commit
35383a2451
11 files changed
+18
-18
No files matched your search
@@ -52,7 +52,7 @@ function Remote:shelfSyncAsync(cb) return Client.shelfAsync(cb) end
|
||||
---@param stable_id string
|
||||
---@param cb fun(ok: boolean|nil, err: string|nil)
|
||||
function Remote:addToShelfAsync(stable_id, cb)
|
||||
local row = require("book.books_db").get("ext.ireader", stable_id)
|
||||
local row = require("book.books_db").get("ireader", stable_id)
|
||||
return Client.addAsync(stable_id, row and row.title or stable_id, cb)
|
||||
end
|
||||
|
||||
@@ -213,7 +213,7 @@ local function fetcher(open)
|
||||
if cancelled then return end
|
||||
if html then
|
||||
active = Assets.localizeAsync(html,
|
||||
Paths.bookWorkDir(identity.stable_id, "ext.ireader") .. "/images",
|
||||
Paths.bookWorkDir(identity.stable_id, "ireader") .. "/images",
|
||||
function(url, cb)
|
||||
return require("http.request").get(url, {
|
||||
accept = "image/*",
|
||||
|
||||
Reference in new issue
Block a user