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

@ -14,7 +14,7 @@ use crate::{
};
use super::{
response::{self, IconType, IsLive},
response::{self, IconType, IsLive, IsShort},
ClientType, MapResponse, QContinuation, RustyPipeQuery, YTContext,
};
@ -438,6 +438,7 @@ fn map_recommendations(
.view_count_text
.map(|txt| util::parse_numeric(&txt).unwrap_or_default()),
is_live: video.badges.is_live(),
is_short: video.thumbnail_overlays.is_short(),
}),
Err(e) => {
warnings.push(e.to_string());