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

@ -534,6 +534,8 @@ pub struct RecommendedVideo {
pub view_count: Option<u64>,
/// Is the video an active livestream?
pub is_live: bool,
/// Is the video a YouTube Short video (vertical and <60s)?
pub is_short: bool,
}
/// Channel information attached to a video or comment

View file

@ -1,3 +1,4 @@
/// Channel video sort order
#[derive(Default, Debug, Copy, Clone, PartialEq, Eq)]
#[non_exhaustive]
pub enum ChannelOrder {