From fb28126f5a30d17e421cc5405d400bd72a6ca66b Mon Sep 17 00:00:00 2001 From: Garfield Date: Mon, 16 Nov 2026 14:07:45 +0800 Subject: [PATCH] =?UTF-8?q?:recycle:=20=E4=B9=A6=E6=BA=90=20id=20=E5=8E=BB?= =?UTF-8?q?=E6=8E=89=20ext.=20=E5=89=8D=E7=BC=80=EF=BC=8C=E6=B2=BF?= =?UTF-8?q?=E7=94=A8=E6=97=A7=E5=86=85=E7=BD=AE=E6=BA=90=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- moonsource-changpei.koplugin/moonsource_changpei/_meta.lua | 2 +- moonsource-changpei.koplugin/moonsource_changpei/client.lua | 2 +- moonsource-changpei.koplugin/moonsource_changpei/mapper.lua | 2 +- moonsource-changpei.koplugin/moonsource_changpei/setting.lua | 2 +- tests/changpei/setting_spec.lua | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/moonsource-changpei.koplugin/moonsource_changpei/_meta.lua b/moonsource-changpei.koplugin/moonsource_changpei/_meta.lua index 2583e03..eca0bf2 100644 --- a/moonsource-changpei.koplugin/moonsource_changpei/_meta.lua +++ b/moonsource-changpei.koplugin/moonsource_changpei/_meta.lua @@ -7,7 +7,7 @@ local _ = require("l10n").get("moonsource_changpei") return { - id = "ext.changpei", + id = "changpei", name = _("长佩文学"), type = "chapter", description = _("长佩文学书架与在线阅读"), diff --git a/moonsource-changpei.koplugin/moonsource_changpei/client.lua b/moonsource-changpei.koplugin/moonsource_changpei/client.lua index aa59d70..e88bde4 100644 --- a/moonsource-changpei.koplugin/moonsource_changpei/client.lua +++ b/moonsource-changpei.koplugin/moonsource_changpei/client.lua @@ -19,7 +19,7 @@ local _ = require("l10n").get("moonsource_changpei") local Client = {} -local SOURCE_ID = "ext.changpei" +local SOURCE_ID = "changpei" local LOGIN_REQUIRED = 9996 Client.VERIFY_REQUIRED = _("长佩需要滑块验证,请打开章节并扫码完成验证,无需重新登录。") diff --git a/moonsource-changpei.koplugin/moonsource_changpei/mapper.lua b/moonsource-changpei.koplugin/moonsource_changpei/mapper.lua index bca4dc8..fac6f01 100644 --- a/moonsource-changpei.koplugin/moonsource_changpei/mapper.lua +++ b/moonsource-changpei.koplugin/moonsource_changpei/mapper.lua @@ -10,7 +10,7 @@ local _ = require("l10n").get("moonsource_changpei") local Mapper = {} -local SOURCE_ID = "ext.changpei" +local SOURCE_ID = "changpei" -- 网页端正文 AES-128-CBC 的固定密钥与 IV(出自官网 h5 脚本)。 local KEY = "u0LRrbu$Enm84koA" diff --git a/moonsource-changpei.koplugin/moonsource_changpei/setting.lua b/moonsource-changpei.koplugin/moonsource_changpei/setting.lua index e2569c4..5424276 100644 --- a/moonsource-changpei.koplugin/moonsource_changpei/setting.lua +++ b/moonsource-changpei.koplugin/moonsource_changpei/setting.lua @@ -11,7 +11,7 @@ local _ = require("l10n").get("moonsource_changpei") local CookieLogin = require("source.cookie_login") -local SOURCE_ID = "ext.changpei" +local SOURCE_ID = "changpei" local Setting = {} ---@return boolean diff --git a/tests/changpei/setting_spec.lua b/tests/changpei/setting_spec.lua index 5f5646b..2336b88 100644 --- a/tests/changpei/setting_spec.lua +++ b/tests/changpei/setting_spec.lua @@ -24,7 +24,7 @@ end package.preload["reader.session"] = function() return { current = function() return nil end } end package.preload["book.books_db"] = function() return { prepareAccountSync = function(id, shelf_add) - Assert.eq(id, "ext.changpei") + Assert.eq(id, "changpei") Assert.is_true(shelf_add) Assert.eq(cfg.cookie, "session=old", "准备失败时还须保留旧账号") prepared = prepared + 1