feat: 支持手动触发全量更新,清除本地多余的视频条目与文件 (#678)

This commit is contained in:
ᴀᴍᴛᴏᴀᴇʀ
2026-03-16 02:50:55 +08:00
committed by GitHub
parent 980779d5c5
commit 29f36238e3
7 changed files with 228 additions and 7 deletions
+11
View File
@@ -182,6 +182,17 @@ impl VideoInfo {
VideoInfo::Detail { .. } => unreachable!(),
}
}
pub fn bvid_owned(self) -> String {
match self {
VideoInfo::Collection { bvid, .. }
| VideoInfo::Favorite { bvid, .. }
| VideoInfo::WatchLater { bvid, .. }
| VideoInfo::Submission { bvid, .. }
| VideoInfo::Dynamic { bvid, .. }
| VideoInfo::Detail { bvid, .. } => bvid,
}
}
}
impl PageInfo {