♻️ 书源 id 去掉 ext. 前缀,沿用旧内置源数据
Co-authored-by: Copilot <[email protected]>
This commit is contained in:
1 parent
0907702861
commit
b45d47aea5
8 files changed
+38
-38
No files matched your search
@@ -7,7 +7,7 @@
|
||||
local _ = require("l10n").get("moonsource_xiaoxiang")
|
||||
|
||||
return {
|
||||
id = "ext.xiaoxiang",
|
||||
id = "xiaoxiang",
|
||||
name = _("潇湘书院"),
|
||||
type = "chapter",
|
||||
description = _("潇湘书院书架与在线阅读"),
|
||||
|
||||
@@ -22,7 +22,7 @@ local Client = {}
|
||||
--- 已保存的登录 Cookie。
|
||||
---@return string|nil
|
||||
function Client.cookie()
|
||||
local cookie = require("utils.settings").getSource("ext.xiaoxiang").cookie
|
||||
local cookie = require("utils.settings").getSource("xiaoxiang").cookie
|
||||
return type(cookie) == "string" and cookie ~= "" and cookie or nil
|
||||
end
|
||||
|
||||
@@ -42,7 +42,7 @@ local function page(url, cb)
|
||||
end)
|
||||
end
|
||||
|
||||
local SOURCE_ID = "ext.xiaoxiang"
|
||||
local SOURCE_ID = "xiaoxiang"
|
||||
local API = "https://www.xxsypro.com/api"
|
||||
|
||||
--- 请求头里的 Cookie:没有 csrfToken 就补一个,网页端要求 Cookie 与 `_csrfToken` 同值。
|
||||
|
||||
@@ -10,7 +10,7 @@ local _ = require("l10n").get("moonsource_xiaoxiang")
|
||||
|
||||
local Mapper = {}
|
||||
|
||||
local SOURCE_ID = "ext.xiaoxiang"
|
||||
local SOURCE_ID = "xiaoxiang"
|
||||
|
||||
--- 新站 JSON 的整数身份不能经过 Lua number;不匹配小数、指数或字符串里的转义引号。
|
||||
function Mapper.decode(raw)
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
local _ = require("l10n").get("moonsource_xiaoxiang")
|
||||
local CookieLogin = require("source.cookie_login")
|
||||
|
||||
local SOURCE_ID = "ext.xiaoxiang"
|
||||
local SOURCE_ID = "xiaoxiang"
|
||||
local Setting = {}
|
||||
|
||||
---@return boolean
|
||||
|
||||
Reference in new issue
Block a user