♻️ 书源 id 去掉 ext. 前缀,沿用旧内置源数据

Co-authored-by: Copilot <[email protected]>
This commit is contained in:
GarfieldandCopilot committed 2026-11-16 14:07:45 +08:00
1 parent 01e572a5ee
commit f8ad3f73a6
29 files changed
+173 -173

No files matched your search

@@ -36,9 +36,9 @@ end
---@return integer removed
function Mp.dropLegacyBooks(BookDB)
local n = 0
for _idx, id in ipairs(BookDB.stableIdsBySource("ext.weread") or {}) do
for _idx, id in ipairs(BookDB.stableIdsBySource("weread") or {}) do
if Mp.isMp(id) then
BookDB.remove("ext.weread", id)
BookDB.remove("weread", id)
n = n + 1
end
end