fix: handle video details not found

This commit is contained in:
ThetaDev 2022-10-12 00:01:25 +02:00
parent c618c83ff3
commit 0d1e569248
4 changed files with 1044 additions and 3 deletions

View file

@ -27,7 +27,7 @@ pub struct VideoDetails {
/// Video metadata + recommended videos
pub contents: Contents,
/// Video ID
pub current_video_endpoint: CurrentVideoEndpoint,
pub current_video_endpoint: Option<CurrentVideoEndpoint>,
/// Video chapters + comment section
#[serde_as(as = "VecLogError<_>")]
pub engagement_panels: MapResult<Vec<EngagementPanel>>,