feat!: add handle to ChannelItem, remove video_count

This commit is contained in:
ThetaDev 2024-08-17 02:59:56 +02:00
parent e6715700d9
commit 1cffb27cc0
No known key found for this signature in database
GPG key ID: E319D3C5148D65B6
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,
}))