fix: add is_short to recommended video

This commit is contained in:
ThetaDev 2022-09-27 20:33:37 +02:00
parent 2254b79cd6
commit 9866006690
11 changed files with 135 additions and 2 deletions

View file

@ -102,7 +102,7 @@ pub struct GridVideoRenderer {
/// Contains `No views` if the view count is zero
#[serde_as(as = "Option<Text>")]
pub view_count_text: Option<String>,
/// Contains video length
/// Contains video length and Short/Live tag
#[serde_as(as = "VecSkipError<_>")]
pub thumbnail_overlays: Vec<TimeOverlay>,
/// Release date for upcoming videos
@ -138,6 +138,9 @@ pub struct CompactVideoRenderer {
#[serde(default)]
#[serde_as(as = "VecSkipError<_>")]
pub badges: Vec<VideoBadge>,
/// Contains Short/Live tag
#[serde_as(as = "VecSkipError<_>")]
pub thumbnail_overlays: Vec<TimeOverlay>,
}
/// Video displayed in a playlist