forked from moon-source/moonsource-fanqie
♻️ 书源 id 去掉 ext. 前缀,沿用旧内置源数据
Co-authored-by: Copilot <[email protected]>
This commit is contained in:
1 parent
088a1a2d94
commit
241cea9599
12 files changed
+21
-21
No files matched your search
@@ -91,7 +91,7 @@ end
|
||||
--- 书架行带最后打开时间(last_operate_time)和加入时间(add_shelf_time)。
|
||||
local function shelfBook(row)
|
||||
local book = {
|
||||
source_id = "ext.fanqie",
|
||||
source_id = "fanqie",
|
||||
stable_id = tostring(row.book_id),
|
||||
title = row.book_name,
|
||||
authors = row.author_name,
|
||||
@@ -100,7 +100,7 @@ local function shelfBook(row)
|
||||
read_at = shelfTime(row.last_operate_time),
|
||||
inserted_at = shelfTime(row.add_shelf_time),
|
||||
}
|
||||
book.category = require("source.category_setting").apply("ext.fanqie", nil, row._group_name)
|
||||
book.category = require("source.category_setting").apply("fanqie", nil, row._group_name)
|
||||
return book
|
||||
end
|
||||
|
||||
@@ -129,7 +129,7 @@ local function shelfRemote(self, force)
|
||||
elseif type(wire.data) ~= "table" or type(wire.data.detail_list) ~= "table" then
|
||||
cb(nil, _("番茄书架响应不完整,保留本地书架"))
|
||||
else
|
||||
require("utils.paths").ensureLayout("ext.fanqie")
|
||||
require("utils.paths").ensureLayout("fanqie")
|
||||
cb(wire)
|
||||
end
|
||||
end)
|
||||
@@ -265,7 +265,7 @@ end
|
||||
local function persistAnchorsFromHtml(identity, chapter, html)
|
||||
local Toc = require("source.toc")
|
||||
local Content = require("moonsource_fanqie.content")
|
||||
local source_id = identity.source_id or "ext.fanqie"
|
||||
local source_id = identity.source_id or "fanqie"
|
||||
local list = Toc.read(source_id, identity.stable_id)
|
||||
if not list then return end
|
||||
local target
|
||||
|
||||
Reference in new issue
Block a user