feat!: add handle to ChannelItem, remove video_count
This commit is contained in:
parent
b715ae18c4
commit
554529d696
5 changed files with 28 additions and 30 deletions
|
|
@ -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 {
|
Ok(search.items.items.iter().any(|itm| match itm {
|
||||||
YouTubeItem::Channel(channel) => channel
|
YouTubeItem::Channel(channel) => channel
|
||||||
.subscriber_count
|
.subscriber_count
|
||||||
.map(|sc| sc > 100 && channel.video_count.is_none())
|
.map(|sc| sc > 100 && channel.handle.is_some())
|
||||||
.unwrap_or_default(),
|
.unwrap_or_default(),
|
||||||
_ => false,
|
_ => false,
|
||||||
}))
|
}))
|
||||||
|
|
|
||||||
|
|
@ -610,28 +610,26 @@ impl<T> YouTubeListMapper<T> {
|
||||||
|
|
||||||
fn map_channel(&mut self, channel: ChannelRenderer) -> ChannelItem {
|
fn map_channel(&mut self, channel: ChannelRenderer) -> ChannelItem {
|
||||||
// channel handle instead of subscriber count (A/B test 3)
|
// channel handle instead of subscriber count (A/B test 3)
|
||||||
let (sc_txt, vc_text) = if channel
|
let (handle, sc_txt) = if channel
|
||||||
.subscriber_count_text
|
.subscriber_count_text
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.map(|txt| txt.starts_with('@'))
|
.map(|txt| txt.starts_with('@'))
|
||||||
.unwrap_or_default()
|
.unwrap_or_default()
|
||||||
{
|
{
|
||||||
(channel.video_count_text, None)
|
|
||||||
} else {
|
|
||||||
(channel.subscriber_count_text, channel.video_count_text)
|
(channel.subscriber_count_text, channel.video_count_text)
|
||||||
|
} else {
|
||||||
|
(None, channel.subscriber_count_text)
|
||||||
};
|
};
|
||||||
|
|
||||||
ChannelItem {
|
ChannelItem {
|
||||||
id: channel.channel_id,
|
id: channel.channel_id,
|
||||||
name: channel.title,
|
name: channel.title,
|
||||||
|
handle,
|
||||||
avatar: channel.thumbnail.into(),
|
avatar: channel.thumbnail.into(),
|
||||||
verification: channel.owner_badges.into(),
|
verification: channel.owner_badges.into(),
|
||||||
subscriber_count: sc_txt.and_then(|txt| {
|
subscriber_count: sc_txt.and_then(|txt| {
|
||||||
util::parse_large_numstr_or_warn(&txt, self.lang, &mut self.warnings)
|
util::parse_large_numstr_or_warn(&txt, self.lang, &mut self.warnings)
|
||||||
}),
|
}),
|
||||||
video_count: vc_text.and_then(|txt| {
|
|
||||||
util::parse_large_numstr_or_warn(&txt, self.lang, &mut self.warnings)
|
|
||||||
}),
|
|
||||||
short_description: channel.description_snippet,
|
short_description: channel.description_snippet,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ SearchResult(
|
||||||
Channel(ChannelItem(
|
Channel(ChannelItem(
|
||||||
id: "UCMwePVHRpDdfeUcwtDZu2Dw",
|
id: "UCMwePVHRpDdfeUcwtDZu2Dw",
|
||||||
name: "Monstafluff Music",
|
name: "Monstafluff Music",
|
||||||
|
handle: Some("@MonstafluffMusic"),
|
||||||
avatar: [
|
avatar: [
|
||||||
Thumbnail(
|
Thumbnail(
|
||||||
url: "//yt3.ggpht.com/ytc/AMLnZu9YhTzdAoL6P4PYq51PCF076ITDrgLitxSDPqv6sw=s88-c-k-c0x00ffffff-no-rj-mo",
|
url: "//yt3.ggpht.com/ytc/AMLnZu9YhTzdAoL6P4PYq51PCF076ITDrgLitxSDPqv6sw=s88-c-k-c0x00ffffff-no-rj-mo",
|
||||||
|
|
@ -23,12 +24,12 @@ SearchResult(
|
||||||
],
|
],
|
||||||
verification: Verified,
|
verification: Verified,
|
||||||
subscriber_count: Some(582000),
|
subscriber_count: Some(582000),
|
||||||
video_count: None,
|
|
||||||
short_description: "Music Submissions: https://monstafluff.edmdistrict.com/",
|
short_description: "Music Submissions: https://monstafluff.edmdistrict.com/",
|
||||||
)),
|
)),
|
||||||
Channel(ChannelItem(
|
Channel(ChannelItem(
|
||||||
id: "UCLxAS02eWvfZK4icRNzWD_g",
|
id: "UCLxAS02eWvfZK4icRNzWD_g",
|
||||||
name: "Music Travel Love",
|
name: "Music Travel Love",
|
||||||
|
handle: Some("@MusicTravelLove"),
|
||||||
avatar: [
|
avatar: [
|
||||||
Thumbnail(
|
Thumbnail(
|
||||||
url: "https://yt3.ggpht.com/ytc/AMLnZu9njNDLU_VtFjfGUaTArBp4AJFhJIxb_CxP7knf3A=s88-c-k-c0x00ffffff-no-rj-mo",
|
url: "https://yt3.ggpht.com/ytc/AMLnZu9njNDLU_VtFjfGUaTArBp4AJFhJIxb_CxP7knf3A=s88-c-k-c0x00ffffff-no-rj-mo",
|
||||||
|
|
@ -43,12 +44,12 @@ SearchResult(
|
||||||
],
|
],
|
||||||
verification: Artist,
|
verification: Artist,
|
||||||
subscriber_count: Some(4030000),
|
subscriber_count: Some(4030000),
|
||||||
video_count: None,
|
|
||||||
short_description: "Welcome to the official Music Travel Love YouTube channel! We travel the world making music, friends, videos and memories!",
|
short_description: "Welcome to the official Music Travel Love YouTube channel! We travel the world making music, friends, videos and memories!",
|
||||||
)),
|
)),
|
||||||
Channel(ChannelItem(
|
Channel(ChannelItem(
|
||||||
id: "UCxKxjNPyL9UO5LRWHzp5JxA",
|
id: "UCxKxjNPyL9UO5LRWHzp5JxA",
|
||||||
name: "Black&White Music",
|
name: "Black&White Music",
|
||||||
|
handle: Some("@blackwhitemusic5836"),
|
||||||
avatar: [
|
avatar: [
|
||||||
Thumbnail(
|
Thumbnail(
|
||||||
url: "//yt3.ggpht.com/FDjW2-Cb6tFbtNv02D1UX4XtvP7P3eEWB93hGimeP4pb2TadVhAgxSVMZLZDp5NiBWGLT5eprA=s88-c-k-c0x00ffffff-no-rj-mo",
|
url: "//yt3.ggpht.com/FDjW2-Cb6tFbtNv02D1UX4XtvP7P3eEWB93hGimeP4pb2TadVhAgxSVMZLZDp5NiBWGLT5eprA=s88-c-k-c0x00ffffff-no-rj-mo",
|
||||||
|
|
@ -63,12 +64,12 @@ SearchResult(
|
||||||
],
|
],
|
||||||
verification: Verified,
|
verification: Verified,
|
||||||
subscriber_count: Some(167000),
|
subscriber_count: Some(167000),
|
||||||
video_count: None,
|
|
||||||
short_description: "MUSIC IN HARMONY WITH YOUR LIFE!!! If any producer, label, artist or photographer has an issue with any of the music or\u{a0}...",
|
short_description: "MUSIC IN HARMONY WITH YOUR LIFE!!! If any producer, label, artist or photographer has an issue with any of the music or\u{a0}...",
|
||||||
)),
|
)),
|
||||||
Channel(ChannelItem(
|
Channel(ChannelItem(
|
||||||
id: "UCGIygiYkKxn7g7fFNFdXskg",
|
id: "UCGIygiYkKxn7g7fFNFdXskg",
|
||||||
name: "HAEVN MUSIC",
|
name: "HAEVN MUSIC",
|
||||||
|
handle: Some("@HAEVNMUSIC"),
|
||||||
avatar: [
|
avatar: [
|
||||||
Thumbnail(
|
Thumbnail(
|
||||||
url: "//yt3.ggpht.com/EYlGIfqhvwtfkCyi5vpqfY_kDHr6L3OeCmkudNiAyhvz6UCnTZQOQaM-8PelFDGofdIqeF7Mb4E=s88-c-k-c0x00ffffff-no-rj-mo",
|
url: "//yt3.ggpht.com/EYlGIfqhvwtfkCyi5vpqfY_kDHr6L3OeCmkudNiAyhvz6UCnTZQOQaM-8PelFDGofdIqeF7Mb4E=s88-c-k-c0x00ffffff-no-rj-mo",
|
||||||
|
|
@ -83,12 +84,12 @@ SearchResult(
|
||||||
],
|
],
|
||||||
verification: Artist,
|
verification: Artist,
|
||||||
subscriber_count: Some(411000),
|
subscriber_count: Some(411000),
|
||||||
video_count: None,
|
|
||||||
short_description: "The official YouTube channel of HAEVN Music. Receiving a piano from his grandfather had a great impact on Jorrit\'s life.",
|
short_description: "The official YouTube channel of HAEVN Music. Receiving a piano from his grandfather had a great impact on Jorrit\'s life.",
|
||||||
)),
|
)),
|
||||||
Channel(ChannelItem(
|
Channel(ChannelItem(
|
||||||
id: "UClvNJkDHdc1gvFGN_Fr_qPw",
|
id: "UClvNJkDHdc1gvFGN_Fr_qPw",
|
||||||
name: "Artemis Music",
|
name: "Artemis Music",
|
||||||
|
handle: Some("@artemismusic1000"),
|
||||||
avatar: [
|
avatar: [
|
||||||
Thumbnail(
|
Thumbnail(
|
||||||
url: "//yt3.ggpht.com/rGXIwYAhI49rKBQmw_pKFMv9yEt4euHnmXOE0OOCD6ApdQXGnuPmEv7TK7cDjrjt0rUXYHuw=s88-c-k-c0x00ffffff-no-rj-mo",
|
url: "//yt3.ggpht.com/rGXIwYAhI49rKBQmw_pKFMv9yEt4euHnmXOE0OOCD6ApdQXGnuPmEv7TK7cDjrjt0rUXYHuw=s88-c-k-c0x00ffffff-no-rj-mo",
|
||||||
|
|
@ -103,12 +104,12 @@ SearchResult(
|
||||||
],
|
],
|
||||||
verification: None,
|
verification: None,
|
||||||
subscriber_count: Some(31200),
|
subscriber_count: Some(31200),
|
||||||
video_count: None,
|
|
||||||
short_description: "Hello and welcome to \"Artemis Music\"! Music can play an effective role in helping us lead a better and more productive life.",
|
short_description: "Hello and welcome to \"Artemis Music\"! Music can play an effective role in helping us lead a better and more productive life.",
|
||||||
)),
|
)),
|
||||||
Channel(ChannelItem(
|
Channel(ChannelItem(
|
||||||
id: "UC5r3j8tQsB3MYZiwQFGKrdA",
|
id: "UC5r3j8tQsB3MYZiwQFGKrdA",
|
||||||
name: "Disco Music",
|
name: "Disco Music",
|
||||||
|
handle: Some("@discomusic9273"),
|
||||||
avatar: [
|
avatar: [
|
||||||
Thumbnail(
|
Thumbnail(
|
||||||
url: "//yt3.ggpht.com/5nqhAdf26KoSKbfUB8kvhJo6rpMQw3XS345h8ZNmeXScqlB1KjJAM0T371r3QcS1mA1LZg9B1Po=s88-c-k-c0x00ffffff-no-rj-mo",
|
url: "//yt3.ggpht.com/5nqhAdf26KoSKbfUB8kvhJo6rpMQw3XS345h8ZNmeXScqlB1KjJAM0T371r3QcS1mA1LZg9B1Po=s88-c-k-c0x00ffffff-no-rj-mo",
|
||||||
|
|
@ -123,12 +124,12 @@ SearchResult(
|
||||||
],
|
],
|
||||||
verification: Verified,
|
verification: Verified,
|
||||||
subscriber_count: Some(372000),
|
subscriber_count: Some(372000),
|
||||||
video_count: None,
|
|
||||||
short_description: "Music is the only language in which you cannot say a mean or sarcastic thing. Have fun listening to music.",
|
short_description: "Music is the only language in which you cannot say a mean or sarcastic thing. Have fun listening to music.",
|
||||||
)),
|
)),
|
||||||
Channel(ChannelItem(
|
Channel(ChannelItem(
|
||||||
id: "UCNZYpcqym8gHcNg2GWcC6nQ",
|
id: "UCNZYpcqym8gHcNg2GWcC6nQ",
|
||||||
name: "S!X - Music",
|
name: "S!X - Music",
|
||||||
|
handle: Some("@s1x-music"),
|
||||||
avatar: [
|
avatar: [
|
||||||
Thumbnail(
|
Thumbnail(
|
||||||
url: "//yt3.googleusercontent.com/ytc/AMLnZu_1NOzbZUJWZjtmD4NTsb9BR-TNIAzNoajv0TisvQ=s88-c-k-c0x00ffffff-no-rj-mo",
|
url: "//yt3.googleusercontent.com/ytc/AMLnZu_1NOzbZUJWZjtmD4NTsb9BR-TNIAzNoajv0TisvQ=s88-c-k-c0x00ffffff-no-rj-mo",
|
||||||
|
|
@ -143,12 +144,12 @@ SearchResult(
|
||||||
],
|
],
|
||||||
verification: Verified,
|
verification: Verified,
|
||||||
subscriber_count: Some(178000),
|
subscriber_count: Some(178000),
|
||||||
video_count: None,
|
|
||||||
short_description: "S!X - Music is an independent Hip-Hop label. Soundcloud : https://soundcloud.com/s1xmusic Facebook\u{a0}...",
|
short_description: "S!X - Music is an independent Hip-Hop label. Soundcloud : https://soundcloud.com/s1xmusic Facebook\u{a0}...",
|
||||||
)),
|
)),
|
||||||
Channel(ChannelItem(
|
Channel(ChannelItem(
|
||||||
id: "UCoEryX-WO7IHBGqTAC5r9Zw",
|
id: "UCoEryX-WO7IHBGqTAC5r9Zw",
|
||||||
name: "Shake Music",
|
name: "Shake Music",
|
||||||
|
handle: Some("@ShakeMusic"),
|
||||||
avatar: [
|
avatar: [
|
||||||
Thumbnail(
|
Thumbnail(
|
||||||
url: "//yt3.googleusercontent.com/ytc/AMLnZu9fMXUALsloNUJ_wLpqCS0ovprvc5W-XwfrpmWqIw=s88-c-k-c0x00ffffff-no-rj-mo",
|
url: "//yt3.googleusercontent.com/ytc/AMLnZu9fMXUALsloNUJ_wLpqCS0ovprvc5W-XwfrpmWqIw=s88-c-k-c0x00ffffff-no-rj-mo",
|
||||||
|
|
@ -163,12 +164,12 @@ SearchResult(
|
||||||
],
|
],
|
||||||
verification: Verified,
|
verification: Verified,
|
||||||
subscriber_count: Some(1040000),
|
subscriber_count: Some(1040000),
|
||||||
video_count: None,
|
|
||||||
short_description: "Welcome to Shake Music, a Trap & Bass Channel / Record Label dedicated to bringing you the best tracks. All tracks on Shake\u{a0}...",
|
short_description: "Welcome to Shake Music, a Trap & Bass Channel / Record Label dedicated to bringing you the best tracks. All tracks on Shake\u{a0}...",
|
||||||
)),
|
)),
|
||||||
Channel(ChannelItem(
|
Channel(ChannelItem(
|
||||||
id: "UCTJ9Qg-1vBu2pP_YrWUfGnQ",
|
id: "UCTJ9Qg-1vBu2pP_YrWUfGnQ",
|
||||||
name: "Miracle Music",
|
name: "Miracle Music",
|
||||||
|
handle: Some("@miraclemusic2328"),
|
||||||
avatar: [
|
avatar: [
|
||||||
Thumbnail(
|
Thumbnail(
|
||||||
url: "//yt3.ggpht.com/3RMarDSmUSIexCXWCpMUkqV64uiHDXTidBLwsObHstx5-AbB8h_n8Zy1W9JymURd7ivzlDEGFw=s88-c-k-c0x00ffffff-no-rj-mo",
|
url: "//yt3.ggpht.com/3RMarDSmUSIexCXWCpMUkqV64uiHDXTidBLwsObHstx5-AbB8h_n8Zy1W9JymURd7ivzlDEGFw=s88-c-k-c0x00ffffff-no-rj-mo",
|
||||||
|
|
@ -183,12 +184,12 @@ SearchResult(
|
||||||
],
|
],
|
||||||
verification: Verified,
|
verification: Verified,
|
||||||
subscriber_count: Some(822000),
|
subscriber_count: Some(822000),
|
||||||
video_count: None,
|
|
||||||
short_description: "Welcome to Miracle Music! On this channel you will find a wide variety of different Deep House, Tropical House, Chill Out, EDM,.",
|
short_description: "Welcome to Miracle Music! On this channel you will find a wide variety of different Deep House, Tropical House, Chill Out, EDM,.",
|
||||||
)),
|
)),
|
||||||
Channel(ChannelItem(
|
Channel(ChannelItem(
|
||||||
id: "UCp6_KuNhT0kcFk-jXw9Tivg",
|
id: "UCp6_KuNhT0kcFk-jXw9Tivg",
|
||||||
name: "Magic Music",
|
name: "Magic Music",
|
||||||
|
handle: Some("@MagicMusicGroup"),
|
||||||
avatar: [
|
avatar: [
|
||||||
Thumbnail(
|
Thumbnail(
|
||||||
url: "//yt3.googleusercontent.com/ytc/AMLnZu-fgSc_lceD4fRL_y0b3MKd2k54DF-laDAR3Avbuw=s88-c-k-c0x00ffffff-no-rj-mo",
|
url: "//yt3.googleusercontent.com/ytc/AMLnZu-fgSc_lceD4fRL_y0b3MKd2k54DF-laDAR3Avbuw=s88-c-k-c0x00ffffff-no-rj-mo",
|
||||||
|
|
@ -203,12 +204,12 @@ SearchResult(
|
||||||
],
|
],
|
||||||
verification: Verified,
|
verification: Verified,
|
||||||
subscriber_count: Some(4620000),
|
subscriber_count: Some(4620000),
|
||||||
video_count: None,
|
|
||||||
short_description: "",
|
short_description: "",
|
||||||
)),
|
)),
|
||||||
Channel(ChannelItem(
|
Channel(ChannelItem(
|
||||||
id: "UCe55Gy-hFDvLZp8C8BZhBnw",
|
id: "UCe55Gy-hFDvLZp8C8BZhBnw",
|
||||||
name: "Nightblue Music",
|
name: "Nightblue Music",
|
||||||
|
handle: Some("@NightblueMusic"),
|
||||||
avatar: [
|
avatar: [
|
||||||
Thumbnail(
|
Thumbnail(
|
||||||
url: "//yt3.googleusercontent.com/ytc/AMLnZu-29SYt5qpqMP9Xi2A98mqL8ymI5Lg7Vzx-qpY09w=s88-c-k-c0x00ffffff-no-rj-mo",
|
url: "//yt3.googleusercontent.com/ytc/AMLnZu-29SYt5qpqMP9Xi2A98mqL8ymI5Lg7Vzx-qpY09w=s88-c-k-c0x00ffffff-no-rj-mo",
|
||||||
|
|
@ -223,12 +224,12 @@ SearchResult(
|
||||||
],
|
],
|
||||||
verification: Verified,
|
verification: Verified,
|
||||||
subscriber_count: Some(1050000),
|
subscriber_count: Some(1050000),
|
||||||
video_count: None,
|
|
||||||
short_description: "BRINGING YOU ONLY THE BEST EDM - TRAP Submit your own track for promotion here:\u{a0}...",
|
short_description: "BRINGING YOU ONLY THE BEST EDM - TRAP Submit your own track for promotion here:\u{a0}...",
|
||||||
)),
|
)),
|
||||||
Channel(ChannelItem(
|
Channel(ChannelItem(
|
||||||
id: "UC2fVSthyWxWSjsiEAHPzriQ",
|
id: "UC2fVSthyWxWSjsiEAHPzriQ",
|
||||||
name: "Mr_MoMo Music",
|
name: "Mr_MoMo Music",
|
||||||
|
handle: Some("@MrMoMoMusic"),
|
||||||
avatar: [
|
avatar: [
|
||||||
Thumbnail(
|
Thumbnail(
|
||||||
url: "//yt3.ggpht.com/7YG4jSrhx_Mfi2TsV0rJFlFARaR8kl7ilcIyzs6gSeNjwn-J88DvDWD8PSNd5o03qJRzpvhs=s88-c-k-c0x00ffffff-no-rj-mo",
|
url: "//yt3.ggpht.com/7YG4jSrhx_Mfi2TsV0rJFlFARaR8kl7ilcIyzs6gSeNjwn-J88DvDWD8PSNd5o03qJRzpvhs=s88-c-k-c0x00ffffff-no-rj-mo",
|
||||||
|
|
@ -243,12 +244,12 @@ SearchResult(
|
||||||
],
|
],
|
||||||
verification: Verified,
|
verification: Verified,
|
||||||
subscriber_count: Some(709000),
|
subscriber_count: Some(709000),
|
||||||
video_count: None,
|
|
||||||
short_description: "Hey there! I am Mr MoMo My channel focus on Japan music, lofi, trap & bass type beat and Japanese instrumental. I mindfully\u{a0}...",
|
short_description: "Hey there! I am Mr MoMo My channel focus on Japan music, lofi, trap & bass type beat and Japanese instrumental. I mindfully\u{a0}...",
|
||||||
)),
|
)),
|
||||||
Channel(ChannelItem(
|
Channel(ChannelItem(
|
||||||
id: "UCN31w7dRjjz8CeP0GfSIo8A",
|
id: "UCN31w7dRjjz8CeP0GfSIo8A",
|
||||||
name: "Danit Music Official",
|
name: "Danit Music Official",
|
||||||
|
handle: Some("@danitmusicofficial5734"),
|
||||||
avatar: [
|
avatar: [
|
||||||
Thumbnail(
|
Thumbnail(
|
||||||
url: "//yt3.ggpht.com/ytc/AMLnZu9rUKtDsY-aSoE5WEwAQxvQTXiuAPYMBoJQ2mYTUA=s88-c-k-c0x00ffffff-no-rj-mo",
|
url: "//yt3.ggpht.com/ytc/AMLnZu9rUKtDsY-aSoE5WEwAQxvQTXiuAPYMBoJQ2mYTUA=s88-c-k-c0x00ffffff-no-rj-mo",
|
||||||
|
|
@ -263,12 +264,12 @@ SearchResult(
|
||||||
],
|
],
|
||||||
verification: None,
|
verification: None,
|
||||||
subscriber_count: Some(54400),
|
subscriber_count: Some(54400),
|
||||||
video_count: None,
|
|
||||||
short_description: "",
|
short_description: "",
|
||||||
)),
|
)),
|
||||||
Channel(ChannelItem(
|
Channel(ChannelItem(
|
||||||
id: "UCpEHWiTMk1eEBAdzBnAb3rA",
|
id: "UCpEHWiTMk1eEBAdzBnAb3rA",
|
||||||
name: "Energy Transformation Relaxing Music ",
|
name: "Energy Transformation Relaxing Music ",
|
||||||
|
handle: Some("@energytransformationrelaxi5596"),
|
||||||
avatar: [
|
avatar: [
|
||||||
Thumbnail(
|
Thumbnail(
|
||||||
url: "//yt3.ggpht.com/RR7upyAvT7N0_qlZWfLlDSRPhLufX4W4X6-qahWvuvDCLn2cWCs0yh_HXB2iwGbk_MTwSqwWEQ=s88-c-k-c0x00ffffff-no-rj-mo",
|
url: "//yt3.ggpht.com/RR7upyAvT7N0_qlZWfLlDSRPhLufX4W4X6-qahWvuvDCLn2cWCs0yh_HXB2iwGbk_MTwSqwWEQ=s88-c-k-c0x00ffffff-no-rj-mo",
|
||||||
|
|
@ -283,12 +284,12 @@ SearchResult(
|
||||||
],
|
],
|
||||||
verification: None,
|
verification: None,
|
||||||
subscriber_count: Some(3590),
|
subscriber_count: Some(3590),
|
||||||
video_count: None,
|
|
||||||
short_description: "Welcome to our Energy Transformation Relaxing Music . This chakra music channel will focus on developing the best chakra\u{a0}...",
|
short_description: "Welcome to our Energy Transformation Relaxing Music . This chakra music channel will focus on developing the best chakra\u{a0}...",
|
||||||
)),
|
)),
|
||||||
Channel(ChannelItem(
|
Channel(ChannelItem(
|
||||||
id: "UCqswUMaC5yWUrkQszr8fuBA",
|
id: "UCqswUMaC5yWUrkQszr8fuBA",
|
||||||
name: "Nonstop Music",
|
name: "Nonstop Music",
|
||||||
|
handle: Some("@nonstopmusic9993"),
|
||||||
avatar: [
|
avatar: [
|
||||||
Thumbnail(
|
Thumbnail(
|
||||||
url: "//yt3.googleusercontent.com/ytc/AMLnZu9vLN62RxNbnpa20r5XreWRlVjHXbHf7BMcvSBxoQ=s88-c-k-c0x00ffffff-no-rj-mo",
|
url: "//yt3.googleusercontent.com/ytc/AMLnZu9vLN62RxNbnpa20r5XreWRlVjHXbHf7BMcvSBxoQ=s88-c-k-c0x00ffffff-no-rj-mo",
|
||||||
|
|
@ -303,12 +304,12 @@ SearchResult(
|
||||||
],
|
],
|
||||||
verification: Verified,
|
verification: Verified,
|
||||||
subscriber_count: Some(416000),
|
subscriber_count: Some(416000),
|
||||||
video_count: None,
|
|
||||||
short_description: "Nonstop Music - Home of 1h videos of your favourite songs and mixes. Nonstop Genres: Pop • Chillout • Tropical House • Deep\u{a0}...",
|
short_description: "Nonstop Music - Home of 1h videos of your favourite songs and mixes. Nonstop Genres: Pop • Chillout • Tropical House • Deep\u{a0}...",
|
||||||
)),
|
)),
|
||||||
Channel(ChannelItem(
|
Channel(ChannelItem(
|
||||||
id: "UChO8h2G8UjOVc081rgYU8XQ",
|
id: "UChO8h2G8UjOVc081rgYU8XQ",
|
||||||
name: "Vibe Music",
|
name: "Vibe Music",
|
||||||
|
handle: Some("@vibemusic."),
|
||||||
avatar: [
|
avatar: [
|
||||||
Thumbnail(
|
Thumbnail(
|
||||||
url: "//yt3.googleusercontent.com/ytc/AMLnZu9Br5pt87kuDLRFbh1MqMXeFlCLbUrwFlDIzU4s=s88-c-k-c0x00ffffff-no-rj-mo",
|
url: "//yt3.googleusercontent.com/ytc/AMLnZu9Br5pt87kuDLRFbh1MqMXeFlCLbUrwFlDIzU4s=s88-c-k-c0x00ffffff-no-rj-mo",
|
||||||
|
|
@ -323,12 +324,12 @@ SearchResult(
|
||||||
],
|
],
|
||||||
verification: Verified,
|
verification: Verified,
|
||||||
subscriber_count: Some(3000000),
|
subscriber_count: Some(3000000),
|
||||||
video_count: None,
|
|
||||||
short_description: "Vibe Music strives to bring the best lyric videos of popular Rap & Hip Hop songs. Be sure to Subscribe to see new videos we\u{a0}...",
|
short_description: "Vibe Music strives to bring the best lyric videos of popular Rap & Hip Hop songs. Be sure to Subscribe to see new videos we\u{a0}...",
|
||||||
)),
|
)),
|
||||||
Channel(ChannelItem(
|
Channel(ChannelItem(
|
||||||
id: "UClV8b2EhIhIASKw-etzegyw",
|
id: "UClV8b2EhIhIASKw-etzegyw",
|
||||||
name: "Suits Music",
|
name: "Suits Music",
|
||||||
|
handle: Some("@SuitsMusic"),
|
||||||
avatar: [
|
avatar: [
|
||||||
Thumbnail(
|
Thumbnail(
|
||||||
url: "//yt3.googleusercontent.com/ytc/AMLnZu9Aj5RtZZMdK_B_YD-8rOfi9c5ddFw5t1s4GYEeOQ=s88-c-k-c0x00ffffff-no-rj-mo",
|
url: "//yt3.googleusercontent.com/ytc/AMLnZu9Aj5RtZZMdK_B_YD-8rOfi9c5ddFw5t1s4GYEeOQ=s88-c-k-c0x00ffffff-no-rj-mo",
|
||||||
|
|
@ -343,12 +344,12 @@ SearchResult(
|
||||||
],
|
],
|
||||||
verification: None,
|
verification: None,
|
||||||
subscriber_count: Some(120000),
|
subscriber_count: Some(120000),
|
||||||
video_count: None,
|
|
||||||
short_description: "",
|
short_description: "",
|
||||||
)),
|
)),
|
||||||
Channel(ChannelItem(
|
Channel(ChannelItem(
|
||||||
id: "UCI2hwz3r5phXpOtViIA5inA",
|
id: "UCI2hwz3r5phXpOtViIA5inA",
|
||||||
name: "Rock Music Collection",
|
name: "Rock Music Collection",
|
||||||
|
handle: Some("@rockmusiccollection4332"),
|
||||||
avatar: [
|
avatar: [
|
||||||
Thumbnail(
|
Thumbnail(
|
||||||
url: "//yt3.ggpht.com/kB4gWvROUIWFuJN8xwIqmPl1QV2_gXMat6COAJjXZT07E3xomc4b2JwGtDg05t1MmhgqImSifhc=s88-c-k-c0x00ffffff-no-rj-mo",
|
url: "//yt3.ggpht.com/kB4gWvROUIWFuJN8xwIqmPl1QV2_gXMat6COAJjXZT07E3xomc4b2JwGtDg05t1MmhgqImSifhc=s88-c-k-c0x00ffffff-no-rj-mo",
|
||||||
|
|
@ -363,12 +364,12 @@ SearchResult(
|
||||||
],
|
],
|
||||||
verification: None,
|
verification: None,
|
||||||
subscriber_count: Some(81700),
|
subscriber_count: Some(81700),
|
||||||
video_count: None,
|
|
||||||
short_description: "",
|
short_description: "",
|
||||||
)),
|
)),
|
||||||
Channel(ChannelItem(
|
Channel(ChannelItem(
|
||||||
id: "UC9w8My3S7h-bQZ-4R-0ZPsw",
|
id: "UC9w8My3S7h-bQZ-4R-0ZPsw",
|
||||||
name: "Helios Music",
|
name: "Helios Music",
|
||||||
|
handle: Some("@heliosmusic55"),
|
||||||
avatar: [
|
avatar: [
|
||||||
Thumbnail(
|
Thumbnail(
|
||||||
url: "//yt3.ggpht.com/bi08T8zuYI1PlbM8M5fyZzjVvNJRJFFcQoonRQvS30opJ-OqGIq5OPrZ19qga29PIAit7OO3=s88-c-k-c0x00ffffff-no-rj-mo",
|
url: "//yt3.ggpht.com/bi08T8zuYI1PlbM8M5fyZzjVvNJRJFFcQoonRQvS30opJ-OqGIq5OPrZ19qga29PIAit7OO3=s88-c-k-c0x00ffffff-no-rj-mo",
|
||||||
|
|
@ -383,12 +384,12 @@ SearchResult(
|
||||||
],
|
],
|
||||||
verification: None,
|
verification: None,
|
||||||
subscriber_count: Some(53000),
|
subscriber_count: Some(53000),
|
||||||
video_count: None,
|
|
||||||
short_description: "Welcome to my channel - Helios Music. I created this channel to help people have the most relaxing, refreshing and comfortable\u{a0}...",
|
short_description: "Welcome to my channel - Helios Music. I created this channel to help people have the most relaxing, refreshing and comfortable\u{a0}...",
|
||||||
)),
|
)),
|
||||||
Channel(ChannelItem(
|
Channel(ChannelItem(
|
||||||
id: "UC_ODKC5gTs2LvdHXDRdDm0w",
|
id: "UC_ODKC5gTs2LvdHXDRdDm0w",
|
||||||
name: "Music On",
|
name: "Music On",
|
||||||
|
handle: Some("@MilanPavlovic91"),
|
||||||
avatar: [
|
avatar: [
|
||||||
Thumbnail(
|
Thumbnail(
|
||||||
url: "//yt3.googleusercontent.com/ytc/AMLnZu8lUOYw4RdRwQf2Kz8RCExSmuWC78oetXF7VL67SA=s88-c-k-c0x00ffffff-no-rj-mo",
|
url: "//yt3.googleusercontent.com/ytc/AMLnZu8lUOYw4RdRwQf2Kz8RCExSmuWC78oetXF7VL67SA=s88-c-k-c0x00ffffff-no-rj-mo",
|
||||||
|
|
@ -403,7 +404,6 @@ SearchResult(
|
||||||
],
|
],
|
||||||
verification: None,
|
verification: None,
|
||||||
subscriber_count: Some(129000),
|
subscriber_count: Some(129000),
|
||||||
video_count: None,
|
|
||||||
short_description: "Music On (UNOFFICIAL CHANNEL)",
|
short_description: "Music On (UNOFFICIAL CHANNEL)",
|
||||||
)),
|
)),
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ SearchResult(
|
||||||
Channel(ChannelItem(
|
Channel(ChannelItem(
|
||||||
id: "UCh8gHdtzO2tXd593_bjErWg",
|
id: "UCh8gHdtzO2tXd593_bjErWg",
|
||||||
name: "Doobydobap",
|
name: "Doobydobap",
|
||||||
|
handle: None,
|
||||||
avatar: [
|
avatar: [
|
||||||
Thumbnail(
|
Thumbnail(
|
||||||
url: "//yt3.ggpht.com/dm5Aq93xvVJz0NoVO88ieBkDXmuShCujGPlZ7qETMEPTrXvPUCFI3-BB6Xs_P-r6Uk3mnBy9zA=s88-c-k-c0x00ffffff-no-rj-mo",
|
url: "//yt3.ggpht.com/dm5Aq93xvVJz0NoVO88ieBkDXmuShCujGPlZ7qETMEPTrXvPUCFI3-BB6Xs_P-r6Uk3mnBy9zA=s88-c-k-c0x00ffffff-no-rj-mo",
|
||||||
|
|
@ -23,7 +24,6 @@ SearchResult(
|
||||||
],
|
],
|
||||||
verification: Verified,
|
verification: Verified,
|
||||||
subscriber_count: Some(2920000),
|
subscriber_count: Some(2920000),
|
||||||
video_count: Some(219),
|
|
||||||
short_description: "Hi, I\'m Tina, aka Doobydobap! Food is the medium I use to tell stories and connect with people who share the same passion as I\u{a0}...",
|
short_description: "Hi, I\'m Tina, aka Doobydobap! Food is the medium I use to tell stories and connect with people who share the same passion as I\u{a0}...",
|
||||||
)),
|
)),
|
||||||
Video(VideoItem(
|
Video(VideoItem(
|
||||||
|
|
|
||||||
|
|
@ -870,6 +870,8 @@ pub struct ChannelItem {
|
||||||
pub id: String,
|
pub id: String,
|
||||||
/// Channel name
|
/// Channel name
|
||||||
pub name: String,
|
pub name: String,
|
||||||
|
/// YouTube channel handle (e.g. `@EEVblog`)
|
||||||
|
pub handle: Option<String>,
|
||||||
/// Channel avatar/profile picture
|
/// Channel avatar/profile picture
|
||||||
pub avatar: Vec<Thumbnail>,
|
pub avatar: Vec<Thumbnail>,
|
||||||
/// Channel verification mark
|
/// Channel verification mark
|
||||||
|
|
@ -878,8 +880,6 @@ pub struct ChannelItem {
|
||||||
///
|
///
|
||||||
/// [`None`] if hidden by the owner or not present.
|
/// [`None`] if hidden by the owner or not present.
|
||||||
pub subscriber_count: Option<u64>,
|
pub subscriber_count: Option<u64>,
|
||||||
/// Number of videos from the channel
|
|
||||||
pub video_count: Option<u64>,
|
|
||||||
/// Abbreviated channel description
|
/// Abbreviated channel description
|
||||||
pub short_description: String,
|
pub short_description: String,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Reference in a new issue