feat!: add handle to ChannelItem, remove video_count

This commit is contained in:
ThetaDev 2024-08-17 02:59:56 +02:00
parent b715ae18c4
commit 554529d696
5 changed files with 28 additions and 30 deletions

View file

@ -179,7 +179,7 @@ pub async fn channel_handles_in_search_results(rp: &RustyPipeQuery) -> Result<bo
Ok(search.items.items.iter().any(|itm| match itm {
YouTubeItem::Channel(channel) => channel
.subscriber_count
.map(|sc| sc > 100 && channel.video_count.is_none())
.map(|sc| sc > 100 && channel.handle.is_some())
.unwrap_or_default(),
_ => false,
}))