fix: parsing lockup playlists with "MIX" instead of view count

This commit is contained in:
ThetaDev 2024-11-10 03:24:26 +01:00
parent 870ff79ee0
commit ac8fbc3e67
No known key found for this signature in database
GPG key ID: E319D3C5148D65B6
6 changed files with 19370 additions and 11 deletions

View file

@ -999,7 +999,7 @@ async fn channel_search(rp: RustyPipe) {
.unwrap();
assert_channel_eevblog(&channel);
assert_next(channel.content, rp.query(), 20, 2, true).await;
assert_next(channel.content, rp.query(), 18, 2, true).await;
}
fn assert_channel_eevblog<T>(channel: &Channel<T>) {
@ -1526,13 +1526,17 @@ async fn music_playlist(
assert_eq!(playlist.description.map(|d| d.to_plaintext()), description);
}
assert_eq!(
playlist.from_ytm, from_ytm,
"got channel: {:?}",
playlist.channel
);
if let Some(expect) = channel {
let c = playlist.channel.expect("channel");
assert_eq!(c.id, expect.0);
assert_eq!(c.name, expect.1);
}
assert!(!playlist.thumbnail.is_empty());
assert_eq!(playlist.from_ytm, from_ytm);
}
#[rstest]