fix: parsing music details with video description tab
This commit is contained in:
parent
f60b4bb1cd
commit
a81c3e8336
4 changed files with 31 additions and 3 deletions
26
tests/snapshots/youtube__music_details_track_details.snap
Normal file
26
tests/snapshots/youtube__music_details_track_details.snap
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
source: tests/youtube.rs
|
||||
expression: track
|
||||
---
|
||||
TrackDetails(
|
||||
track: TrackItem(
|
||||
id: "1eekOcpx_iQ",
|
||||
name: "NCT 127 \'Highway to Heaven\' NEO CITY Tour Film ver.",
|
||||
duration: Some(202),
|
||||
cover: "[cover]",
|
||||
artists: [
|
||||
ArtistId(
|
||||
id: Some("UCk2E0dbAyEJWnrN2bbQOcbg"),
|
||||
name: "NCT 127",
|
||||
),
|
||||
],
|
||||
artist_id: Some("UCk2E0dbAyEJWnrN2bbQOcbg"),
|
||||
album: None,
|
||||
view_count: "[view_count]",
|
||||
is_video: true,
|
||||
track_nr: None,
|
||||
by_va: false,
|
||||
),
|
||||
lyrics_id: None,
|
||||
related_id: None,
|
||||
)
|
||||
|
|
@ -2218,6 +2218,7 @@ async fn music_search_suggestion(
|
|||
#[rstest]
|
||||
#[case::mv("mv", "ZeerrnuLi5E")]
|
||||
#[case::track("track", "qIZ-vvg-wiU")]
|
||||
#[case::track_details("track_details", "1eekOcpx_iQ")]
|
||||
#[tokio::test]
|
||||
async fn music_details(#[case] name: &str, #[case] id: &str, rp: RustyPipe) {
|
||||
let track = rp.query().music_details(id).await.unwrap();
|
||||
|
|
|
|||
Reference in a new issue