fix: add is_short to recommended video
This commit is contained in:
parent
2254b79cd6
commit
9866006690
11 changed files with 135 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
/// Channel video sort order
|
||||
#[derive(Default, Debug, Copy, Clone, PartialEq, Eq)]
|
||||
#[non_exhaustive]
|
||||
pub enum ChannelOrder {
|
||||
|
|
|
|||
Reference in a new issue