♻️ 书源 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
@@ -9,7 +9,7 @@
|
||||
local _ = require("l10n").get("moonsource_ireader")
|
||||
|
||||
return {
|
||||
id = "ext.ireader",
|
||||
id = "ireader",
|
||||
name = _("掌阅书城"),
|
||||
type = "chapter",
|
||||
description = _("掌阅书架与在线阅读"),
|
||||
|
||||
@@ -18,7 +18,7 @@ local _ = require("l10n").get("moonsource_ireader")
|
||||
|
||||
local Client = {}
|
||||
|
||||
local SOURCE_ID = "ext.ireader"
|
||||
local SOURCE_ID = "ireader"
|
||||
local API = "https://api-pc.zhangyue.com"
|
||||
local WEB = "https://pc.ireader.com"
|
||||
local STORE = "https://m.zhangyue.com"
|
||||
|
||||
@@ -8,7 +8,7 @@ local Text = require("utils.text")
|
||||
|
||||
local Mapper = {}
|
||||
|
||||
local SOURCE_ID = "ext.ireader"
|
||||
local SOURCE_ID = "ireader"
|
||||
|
||||
-- 官网 FZYouH_509R_V1.10.ttf 的二十个私用字形;两个连续区间,中间 A–F 没有字形。
|
||||
local CONTENT_CHARS = {}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
local _ = require("l10n").get("moonsource_ireader")
|
||||
local CookieLogin = require("source.cookie_login")
|
||||
|
||||
local SOURCE_ID = "ext.ireader"
|
||||
local SOURCE_ID = "ireader"
|
||||
local Setting = {}
|
||||
local LOGIN_URL = "https://pc.ireader.com/login"
|
||||
|
||||
|
||||
@@ -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