♻️ 书源 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
@@ -3,7 +3,7 @@
|
||||
--]]
|
||||
|
||||
-- 本源的段评可借给本地书(reader.paragraph_lender)
|
||||
require("utils.extension").add("reader.paragraph_lender", { id = "ext.douban", label = require("moonsource_douban._meta").name })
|
||||
require("utils.extension").add("reader.paragraph_lender", { id = "douban", label = require("moonsource_douban._meta").name })
|
||||
|
||||
local function lazy(module)
|
||||
return setmetatable({}, { __index = function(_, key) return require(module)[key] end })
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
local _ = require("l10n").get("moonsource_douban")
|
||||
|
||||
return {
|
||||
id = "ext.douban",
|
||||
id = "douban",
|
||||
name = _("豆瓣阅读"),
|
||||
type = "chapter",
|
||||
description = _("豆瓣阅读书架与在线阅读"),
|
||||
|
||||
@@ -16,7 +16,7 @@ local _ = require("l10n").get("moonsource_douban")
|
||||
|
||||
local Client = {}
|
||||
|
||||
local SOURCE_ID = "ext.douban"
|
||||
local SOURCE_ID = "douban"
|
||||
local READ_HOST = "read.douban.com"
|
||||
local ACCOUNT_HOST = "accounts.arkread.com"
|
||||
local READ = "https://" .. READ_HOST
|
||||
|
||||
@@ -16,7 +16,7 @@ local _ = require("l10n").get("moonsource_douban")
|
||||
|
||||
local Mapper = {}
|
||||
|
||||
local SOURCE_ID = "ext.douban"
|
||||
local SOURCE_ID = "douban"
|
||||
|
||||
Mapper.TOC_VERSION = 2
|
||||
Mapper.SEARCH_HASH = "sha256:92911ffc68782f44a56764094edc0068f283c29fb447277f8ed2911af6bbd0a0"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
local _ = require("l10n").get("moonsource_douban")
|
||||
local CookieLogin = require("source.cookie_login")
|
||||
|
||||
local SOURCE_ID = "ext.douban"
|
||||
local SOURCE_ID = "douban"
|
||||
local Setting = {}
|
||||
local LOGIN_URL = "https://read.douban.com/oidc/login"
|
||||
|
||||
|
||||
Reference in new issue
Block a user