fix: add support for upcoming channel videos
This commit is contained in:
parent
49f3aa3577
commit
2254b79cd6
10 changed files with 13183 additions and 8 deletions
|
|
@ -105,6 +105,8 @@ pub struct GridVideoRenderer {
|
|||
/// Contains video length
|
||||
#[serde_as(as = "VecSkipError<_>")]
|
||||
pub thumbnail_overlays: Vec<TimeOverlay>,
|
||||
/// Release date for upcoming videos
|
||||
pub upcoming_event_data: Option<UpcomingEventData>,
|
||||
}
|
||||
|
||||
/// Video displayed in recommendations
|
||||
|
|
@ -166,6 +168,15 @@ pub struct GridPlaylistRenderer {
|
|||
pub video_count_short_text: String,
|
||||
}
|
||||
|
||||
#[serde_as]
|
||||
#[derive(Clone, Debug, Deserialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct UpcomingEventData {
|
||||
/// Unixtime in seconds
|
||||
#[serde_as(as = "JsonString")]
|
||||
pub start_time: i64,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Deserialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct ContinuationItemRenderer {
|
||||
|
|
|
|||
Reference in a new issue