diff --git a/src/youtube/context.rs b/src/youtube/context.rs index 0f5878f..14d2cde 100644 --- a/src/youtube/context.rs +++ b/src/youtube/context.rs @@ -108,7 +108,7 @@ impl ChatContext { .ok_or_else(|| Error::NoMatchingStream(channel_id.to_string()))? { TabItemRenderer::TabRenderer { content, .. } => match content.as_ref().unwrap() { - FeedContentsRenderer::RichGridRenderer { contents, .. } => { + FeedContentsRenderer::RichGridRenderer { contents } => { let finder = |c: &&RichGridItem| match c { RichGridItem::RichItemRenderer { content, .. } => match content { RichItemContent::VideoRenderer { thumbnail_overlays, video_id, .. } => thumbnail_overlays.iter().any(|c| match c { @@ -145,7 +145,7 @@ impl ChatContext { } .ok_or_else(|| Error::NoMatchingStream(channel_id.to_string()))? } - FeedContentsRenderer::SectionListRenderer { .. } => return Err(Error::NoMatchingStream(channel_id.to_string())) + _ => return Err(Error::NoMatchingStream(channel_id.to_string())) }, TabItemRenderer::ExpandableTabRenderer { .. } => unreachable!() } diff --git a/src/youtube/types/streams_page.rs b/src/youtube/types/streams_page.rs index b0bb631..70a8697 100644 --- a/src/youtube/types/streams_page.rs +++ b/src/youtube/types/streams_page.rs @@ -58,8 +58,11 @@ pub struct BrowseEndpoint { #[derive(Debug, Deserialize)] #[serde(rename_all = "camelCase")] pub enum FeedContentsRenderer { - RichGridRenderer { contents: Vec, header: FeedHeaderRenderer }, - SectionListRenderer { contents: Vec } + RichGridRenderer { + contents: Vec + }, + #[serde(other)] + Other } #[derive(Debug, Deserialize)]