mirror of
https://github.com/amtoaer/bili-sync.git
synced 2026-09-04 23:18:02 +08:00
feat: 支持手动触发全量更新,清除本地多余的视频条目与文件 (#678)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user