mirror of
https://github.com/amtoaer/bili-sync.git
synced 2026-07-12 16:11:32 +08:00
feat: 在视频页显示视频属于哪个视频源 (#676)
This commit is contained in:
@@ -77,6 +77,10 @@ pub struct VideoInfo {
|
||||
pub should_download: bool,
|
||||
#[serde(serialize_with = "serde_video_download_status")]
|
||||
pub download_status: u32,
|
||||
pub collection_id: Option<i32>,
|
||||
pub favorite_id: Option<i32>,
|
||||
pub submission_id: Option<i32>,
|
||||
pub watch_later_id: Option<i32>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, DerivePartialModel, FromQueryResult)]
|
||||
|
||||
@@ -200,6 +200,10 @@ pub async fn clear_and_reset_video_status(
|
||||
valid: video_info.valid,
|
||||
should_download: video_info.should_download,
|
||||
download_status: video_info.download_status,
|
||||
collection_id: video_info.collection_id,
|
||||
favorite_id: video_info.favorite_id,
|
||||
submission_id: video_info.submission_id,
|
||||
watch_later_id: video_info.watch_later_id,
|
||||
},
|
||||
}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user