♻️ 书源 id 去掉 ext. 前缀,沿用旧内置源数据
Co-authored-by: Copilot <[email protected]>
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user