fix: failing YTM tests (again)
This commit is contained in:
parent
0b01ef870f
commit
86bbcfc300
5 changed files with 317 additions and 2867 deletions
|
|
@ -3,9 +3,9 @@ source: tests/youtube.rs
|
||||||
expression: album
|
expression: album
|
||||||
---
|
---
|
||||||
MusicAlbum(
|
MusicAlbum(
|
||||||
id: "MPREb_mXdQvyCqLnx",
|
id: "MPREb_rMegpebUBPU",
|
||||||
playlist_id: Some("OLAK5uy_mAg4o-PpgUtVY97PDxaY3DRTZt37WUDaQ"),
|
playlist_id: Some("OLAK5uy_nZzwnG9SLy5l-hd5Ze0FH4LfTWMqDXQdY"),
|
||||||
name: "Demi",
|
name: "Unbroken",
|
||||||
cover: "[cover]",
|
cover: "[cover]",
|
||||||
artists: [
|
artists: [
|
||||||
ArtistId(
|
ArtistId(
|
||||||
|
|
@ -14,15 +14,15 @@ MusicAlbum(
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
||||||
description: Some("Demi is the fourth studio album by American singer Demi Lovato. It was released on May 10, 2013, by Hollywood Records. Looking to transition from her self-described \"generic\" third album Unbroken, Lovato wanted her fourth album to \"have songs that excited her\". Demi is primarily a pop record with elements of synthpop, and bubblegum pop.\nDemi received generally favorable reviews from music critics, who complimented Lovato\'s vocal performance. The album debuted at number three on the US Billboard 200 with first-week sales of 110,000 copies. The album also reached the top five in Canada, Ireland, Italy, Mexico and Spain. It has since sold 490,000 digital copies in the US and been certified Gold by the RIAA.\nThe album\'s lead single, \"Heart Attack\" peaked at number ten on the Billboard Hot 100, marking Lovato\'s third US top-ten single, and has been certified double platinum by the RIAA. The second single \"Made in the USA\" peaked at number 80, while later singles \"Neon Lights\" and \"Really Don\'t Care\" both reached the top 40 peaking at 36 and 26, respectively, and both have been certified platinum by RIAA.\n\nFrom Wikipedia (https://en.wikipedia.org/wiki/Demi_(album)) under Creative Commons Attribution CC-BY-SA 3.0 (https://creativecommons.org/licenses/by-sa/3.0/legalcode)"),
|
description: Some("Unbroken is the third studio album by American singer Demi Lovato. It was released on September 20, 2011, by Hollywood Records. Primarily a pop record, Lovato described the album as \"more mature\" and with more R&B elements than her previous material, citing Rihanna as the major influence. While some of the album\'s lyrical content was heavily influenced by Lovato\'s personal struggles, it also deals with lighter subjects, such as love, self-empowerment, and having fun. Contributions to the album\'s production came from a wide range of producers, including Toby Gad, Ryan Tedder, Timbaland, Jim Beanz and Rock Mafia.\nLovato initially began recording her third studio album in 2010 before going on tour with the Jonas Brothers on their Live in Concert Tour. After withdrawing from the tour to seek treatment for physical and emotional issues, Lovato continued work on the album and described the recording process as therapeutic. She collaborated with artists such as Missy Elliott, Timbaland, Dev, Iyaz, and Jason Derulo on several tracks.\n\nFrom Wikipedia (https://en.wikipedia.org/wiki/Unbroken_(Demi_Lovato_album)) under Creative Commons Attribution CC-BY-SA 3.0 (https://creativecommons.org/licenses/by-sa/3.0/legalcode)"),
|
||||||
album_type: Album,
|
album_type: Album,
|
||||||
year: Some(2013),
|
year: Some(2011),
|
||||||
by_va: false,
|
by_va: false,
|
||||||
tracks: [
|
tracks: [
|
||||||
TrackItem(
|
TrackItem(
|
||||||
id: "8DmPZaCLMcE",
|
id: "js0moD0CIRQ",
|
||||||
name: "Heart Attack",
|
name: "All Night Long",
|
||||||
duration: Some(211),
|
duration: Some(195),
|
||||||
cover: [],
|
cover: [],
|
||||||
artists: [
|
artists: [
|
||||||
ArtistId(
|
ArtistId(
|
||||||
|
|
@ -32,8 +32,8 @@ MusicAlbum(
|
||||||
],
|
],
|
||||||
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
||||||
album: Some(AlbumId(
|
album: Some(AlbumId(
|
||||||
id: "MPREb_mXdQvyCqLnx",
|
id: "MPREb_rMegpebUBPU",
|
||||||
name: "Demi",
|
name: "Unbroken",
|
||||||
)),
|
)),
|
||||||
view_count: "[view_count]",
|
view_count: "[view_count]",
|
||||||
is_video: false,
|
is_video: false,
|
||||||
|
|
@ -41,9 +41,9 @@ MusicAlbum(
|
||||||
by_va: false,
|
by_va: false,
|
||||||
),
|
),
|
||||||
TrackItem(
|
TrackItem(
|
||||||
id: "RRE0hz60t8I",
|
id: "-xFJfXE2Cms",
|
||||||
name: "Made In The USA",
|
name: "Who\'s That Boy",
|
||||||
duration: Some(197),
|
duration: Some(193),
|
||||||
cover: [],
|
cover: [],
|
||||||
artists: [
|
artists: [
|
||||||
ArtistId(
|
ArtistId(
|
||||||
|
|
@ -53,8 +53,8 @@ MusicAlbum(
|
||||||
],
|
],
|
||||||
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
||||||
album: Some(AlbumId(
|
album: Some(AlbumId(
|
||||||
id: "MPREb_mXdQvyCqLnx",
|
id: "MPREb_rMegpebUBPU",
|
||||||
name: "Demi",
|
name: "Unbroken",
|
||||||
)),
|
)),
|
||||||
view_count: "[view_count]",
|
view_count: "[view_count]",
|
||||||
is_video: false,
|
is_video: false,
|
||||||
|
|
@ -62,9 +62,9 @@ MusicAlbum(
|
||||||
by_va: false,
|
by_va: false,
|
||||||
),
|
),
|
||||||
TrackItem(
|
TrackItem(
|
||||||
id: "O38fBJpWqGM",
|
id: "KWDAaQDq8CQ",
|
||||||
name: "Without The Love",
|
name: "You\'re My Only Shorty",
|
||||||
duration: Some(236),
|
duration: Some(187),
|
||||||
cover: [],
|
cover: [],
|
||||||
artists: [
|
artists: [
|
||||||
ArtistId(
|
ArtistId(
|
||||||
|
|
@ -74,8 +74,8 @@ MusicAlbum(
|
||||||
],
|
],
|
||||||
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
||||||
album: Some(AlbumId(
|
album: Some(AlbumId(
|
||||||
id: "MPREb_mXdQvyCqLnx",
|
id: "MPREb_rMegpebUBPU",
|
||||||
name: "Demi",
|
name: "Unbroken",
|
||||||
)),
|
)),
|
||||||
view_count: "[view_count]",
|
view_count: "[view_count]",
|
||||||
is_video: false,
|
is_video: false,
|
||||||
|
|
@ -83,9 +83,9 @@ MusicAlbum(
|
||||||
by_va: false,
|
by_va: false,
|
||||||
),
|
),
|
||||||
TrackItem(
|
TrackItem(
|
||||||
id: "BB1Q5XjCOho",
|
id: "0bcovdD1gQo",
|
||||||
name: "Neon Lights",
|
name: "Together",
|
||||||
duration: Some(234),
|
duration: Some(274),
|
||||||
cover: [],
|
cover: [],
|
||||||
artists: [
|
artists: [
|
||||||
ArtistId(
|
ArtistId(
|
||||||
|
|
@ -95,8 +95,8 @@ MusicAlbum(
|
||||||
],
|
],
|
||||||
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
||||||
album: Some(AlbumId(
|
album: Some(AlbumId(
|
||||||
id: "MPREb_mXdQvyCqLnx",
|
id: "MPREb_rMegpebUBPU",
|
||||||
name: "Demi",
|
name: "Unbroken",
|
||||||
)),
|
)),
|
||||||
view_count: "[view_count]",
|
view_count: "[view_count]",
|
||||||
is_video: false,
|
is_video: false,
|
||||||
|
|
@ -104,9 +104,9 @@ MusicAlbum(
|
||||||
by_va: false,
|
by_va: false,
|
||||||
),
|
),
|
||||||
TrackItem(
|
TrackItem(
|
||||||
id: "0VOm-MoZ3Xg",
|
id: "lJsqxERcxR8",
|
||||||
name: "Two Pieces",
|
name: "Lightweight",
|
||||||
duration: Some(266),
|
duration: Some(242),
|
||||||
cover: [],
|
cover: [],
|
||||||
artists: [
|
artists: [
|
||||||
ArtistId(
|
ArtistId(
|
||||||
|
|
@ -116,8 +116,8 @@ MusicAlbum(
|
||||||
],
|
],
|
||||||
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
||||||
album: Some(AlbumId(
|
album: Some(AlbumId(
|
||||||
id: "MPREb_mXdQvyCqLnx",
|
id: "MPREb_rMegpebUBPU",
|
||||||
name: "Demi",
|
name: "Unbroken",
|
||||||
)),
|
)),
|
||||||
view_count: "[view_count]",
|
view_count: "[view_count]",
|
||||||
is_video: false,
|
is_video: false,
|
||||||
|
|
@ -125,9 +125,9 @@ MusicAlbum(
|
||||||
by_va: false,
|
by_va: false,
|
||||||
),
|
),
|
||||||
TrackItem(
|
TrackItem(
|
||||||
id: "vvm-XtXQ7wI",
|
id: "iLfB6-slQdc",
|
||||||
name: "Nightingale",
|
name: "Unbroken",
|
||||||
duration: Some(217),
|
duration: Some(199),
|
||||||
cover: [],
|
cover: [],
|
||||||
artists: [
|
artists: [
|
||||||
ArtistId(
|
ArtistId(
|
||||||
|
|
@ -137,8 +137,8 @@ MusicAlbum(
|
||||||
],
|
],
|
||||||
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
||||||
album: Some(AlbumId(
|
album: Some(AlbumId(
|
||||||
id: "MPREb_mXdQvyCqLnx",
|
id: "MPREb_rMegpebUBPU",
|
||||||
name: "Demi",
|
name: "Unbroken",
|
||||||
)),
|
)),
|
||||||
view_count: "[view_count]",
|
view_count: "[view_count]",
|
||||||
is_video: false,
|
is_video: false,
|
||||||
|
|
@ -146,9 +146,9 @@ MusicAlbum(
|
||||||
by_va: false,
|
by_va: false,
|
||||||
),
|
),
|
||||||
TrackItem(
|
TrackItem(
|
||||||
id: "CJYhllodSAc",
|
id: "4DjGZIdMcZk",
|
||||||
name: "In Case",
|
name: "Fix a Heart",
|
||||||
duration: Some(215),
|
duration: Some(194),
|
||||||
cover: [],
|
cover: [],
|
||||||
artists: [
|
artists: [
|
||||||
ArtistId(
|
ArtistId(
|
||||||
|
|
@ -158,8 +158,8 @@ MusicAlbum(
|
||||||
],
|
],
|
||||||
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
||||||
album: Some(AlbumId(
|
album: Some(AlbumId(
|
||||||
id: "MPREb_mXdQvyCqLnx",
|
id: "MPREb_rMegpebUBPU",
|
||||||
name: "Demi",
|
name: "Unbroken",
|
||||||
)),
|
)),
|
||||||
view_count: "[view_count]",
|
view_count: "[view_count]",
|
||||||
is_video: false,
|
is_video: false,
|
||||||
|
|
@ -167,9 +167,9 @@ MusicAlbum(
|
||||||
by_va: false,
|
by_va: false,
|
||||||
),
|
),
|
||||||
TrackItem(
|
TrackItem(
|
||||||
id: "tTmJoiCIebg",
|
id: "hakoZyX4QIc",
|
||||||
name: "Really Don\'t Care (feat. Cher Lloyd)",
|
name: "Hold Up",
|
||||||
duration: Some(202),
|
duration: Some(172),
|
||||||
cover: [],
|
cover: [],
|
||||||
artists: [
|
artists: [
|
||||||
ArtistId(
|
ArtistId(
|
||||||
|
|
@ -179,8 +179,8 @@ MusicAlbum(
|
||||||
],
|
],
|
||||||
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
||||||
album: Some(AlbumId(
|
album: Some(AlbumId(
|
||||||
id: "MPREb_mXdQvyCqLnx",
|
id: "MPREb_rMegpebUBPU",
|
||||||
name: "Demi",
|
name: "Unbroken",
|
||||||
)),
|
)),
|
||||||
view_count: "[view_count]",
|
view_count: "[view_count]",
|
||||||
is_video: false,
|
is_video: false,
|
||||||
|
|
@ -188,9 +188,9 @@ MusicAlbum(
|
||||||
by_va: false,
|
by_va: false,
|
||||||
),
|
),
|
||||||
TrackItem(
|
TrackItem(
|
||||||
id: "qmGtn0TQ8Fk",
|
id: "GOh96GiHVgI",
|
||||||
name: "Fire Starter",
|
name: "Mistake",
|
||||||
duration: Some(205),
|
duration: Some(214),
|
||||||
cover: [],
|
cover: [],
|
||||||
artists: [
|
artists: [
|
||||||
ArtistId(
|
ArtistId(
|
||||||
|
|
@ -200,8 +200,8 @@ MusicAlbum(
|
||||||
],
|
],
|
||||||
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
||||||
album: Some(AlbumId(
|
album: Some(AlbumId(
|
||||||
id: "MPREb_mXdQvyCqLnx",
|
id: "MPREb_rMegpebUBPU",
|
||||||
name: "Demi",
|
name: "Unbroken",
|
||||||
)),
|
)),
|
||||||
view_count: "[view_count]",
|
view_count: "[view_count]",
|
||||||
is_video: false,
|
is_video: false,
|
||||||
|
|
@ -209,9 +209,9 @@ MusicAlbum(
|
||||||
by_va: false,
|
by_va: false,
|
||||||
),
|
),
|
||||||
TrackItem(
|
TrackItem(
|
||||||
id: "Bb_j4TTlEZA",
|
id: "ne_jRAHABx0",
|
||||||
name: "Something That We\'re Not",
|
name: "Give Your Heart a Break",
|
||||||
duration: Some(198),
|
duration: Some(206),
|
||||||
cover: [],
|
cover: [],
|
||||||
artists: [
|
artists: [
|
||||||
ArtistId(
|
ArtistId(
|
||||||
|
|
@ -221,8 +221,8 @@ MusicAlbum(
|
||||||
],
|
],
|
||||||
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
||||||
album: Some(AlbumId(
|
album: Some(AlbumId(
|
||||||
id: "MPREb_mXdQvyCqLnx",
|
id: "MPREb_rMegpebUBPU",
|
||||||
name: "Demi",
|
name: "Unbroken",
|
||||||
)),
|
)),
|
||||||
view_count: "[view_count]",
|
view_count: "[view_count]",
|
||||||
is_video: false,
|
is_video: false,
|
||||||
|
|
@ -230,9 +230,9 @@ MusicAlbum(
|
||||||
by_va: false,
|
by_va: false,
|
||||||
),
|
),
|
||||||
TrackItem(
|
TrackItem(
|
||||||
id: "rVey1Qgn1vc",
|
id: "g8oyC2g5V64",
|
||||||
name: "Never Been Hurt",
|
name: "Skyscraper",
|
||||||
duration: Some(237),
|
duration: Some(222),
|
||||||
cover: [],
|
cover: [],
|
||||||
artists: [
|
artists: [
|
||||||
ArtistId(
|
ArtistId(
|
||||||
|
|
@ -242,8 +242,8 @@ MusicAlbum(
|
||||||
],
|
],
|
||||||
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
||||||
album: Some(AlbumId(
|
album: Some(AlbumId(
|
||||||
id: "MPREb_mXdQvyCqLnx",
|
id: "MPREb_rMegpebUBPU",
|
||||||
name: "Demi",
|
name: "Unbroken",
|
||||||
)),
|
)),
|
||||||
view_count: "[view_count]",
|
view_count: "[view_count]",
|
||||||
is_video: false,
|
is_video: false,
|
||||||
|
|
@ -251,9 +251,9 @@ MusicAlbum(
|
||||||
by_va: false,
|
by_va: false,
|
||||||
),
|
),
|
||||||
TrackItem(
|
TrackItem(
|
||||||
id: "mdXNWcYYZ10",
|
id: "RxTEv7wXvG0",
|
||||||
name: "Shouldn\'t Come Back",
|
name: "In Real Life",
|
||||||
duration: Some(230),
|
duration: Some(178),
|
||||||
cover: [],
|
cover: [],
|
||||||
artists: [
|
artists: [
|
||||||
ArtistId(
|
ArtistId(
|
||||||
|
|
@ -263,8 +263,8 @@ MusicAlbum(
|
||||||
],
|
],
|
||||||
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
||||||
album: Some(AlbumId(
|
album: Some(AlbumId(
|
||||||
id: "MPREb_mXdQvyCqLnx",
|
id: "MPREb_rMegpebUBPU",
|
||||||
name: "Demi",
|
name: "Unbroken",
|
||||||
)),
|
)),
|
||||||
view_count: "[view_count]",
|
view_count: "[view_count]",
|
||||||
is_video: false,
|
is_video: false,
|
||||||
|
|
@ -272,9 +272,9 @@ MusicAlbum(
|
||||||
by_va: false,
|
by_va: false,
|
||||||
),
|
),
|
||||||
TrackItem(
|
TrackItem(
|
||||||
id: "yX40-XWjWe0",
|
id: "V8iVLlSZeNs",
|
||||||
name: "Warrior",
|
name: "My Love Is Like a Star",
|
||||||
duration: Some(232),
|
duration: Some(231),
|
||||||
cover: [],
|
cover: [],
|
||||||
artists: [
|
artists: [
|
||||||
ArtistId(
|
ArtistId(
|
||||||
|
|
@ -284,31 +284,19 @@ MusicAlbum(
|
||||||
],
|
],
|
||||||
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
||||||
album: Some(AlbumId(
|
album: Some(AlbumId(
|
||||||
id: "MPREb_mXdQvyCqLnx",
|
id: "MPREb_rMegpebUBPU",
|
||||||
name: "Demi",
|
name: "Unbroken",
|
||||||
)),
|
)),
|
||||||
view_count: "[view_count]",
|
view_count: "[view_count]",
|
||||||
is_video: false,
|
is_video: false,
|
||||||
track_nr: Some(13),
|
track_nr: Some(13),
|
||||||
by_va: false,
|
by_va: false,
|
||||||
),
|
),
|
||||||
],
|
TrackItem(
|
||||||
variants: [
|
id: "OESslKlpao4",
|
||||||
AlbumItem(
|
name: "For the Love of a Daughter",
|
||||||
id: "MPREb_bURBKIaURqK",
|
duration: Some(241),
|
||||||
name: "Demi (Deluxe)",
|
cover: [],
|
||||||
cover: [
|
|
||||||
Thumbnail(
|
|
||||||
url: "https://lh3.googleusercontent.com/p6Fy9_hfUY-Y6BXzdsIfOKpSZBhjGkDrpPcbA8DNrR1zvCFUL7p3cCeUywx8PxQ6FX7eb30MsWq3fpn2=w226-h226-l90-rj",
|
|
||||||
width: 226,
|
|
||||||
height: 226,
|
|
||||||
),
|
|
||||||
Thumbnail(
|
|
||||||
url: "https://lh3.googleusercontent.com/p6Fy9_hfUY-Y6BXzdsIfOKpSZBhjGkDrpPcbA8DNrR1zvCFUL7p3cCeUywx8PxQ6FX7eb30MsWq3fpn2=w544-h544-l90-rj",
|
|
||||||
width: 544,
|
|
||||||
height: 544,
|
|
||||||
),
|
|
||||||
],
|
|
||||||
artists: [
|
artists: [
|
||||||
ArtistId(
|
ArtistId(
|
||||||
id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
||||||
|
|
@ -316,9 +304,36 @@ MusicAlbum(
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
||||||
album_type: Album,
|
album: Some(AlbumId(
|
||||||
year: None,
|
id: "MPREb_rMegpebUBPU",
|
||||||
|
name: "Unbroken",
|
||||||
|
)),
|
||||||
|
view_count: "[view_count]",
|
||||||
|
is_video: false,
|
||||||
|
track_nr: Some(14),
|
||||||
|
by_va: false,
|
||||||
|
),
|
||||||
|
TrackItem(
|
||||||
|
id: "ennw5cHAebo",
|
||||||
|
name: "Skyscraper (Wizz Dumb Remix)",
|
||||||
|
duration: Some(223),
|
||||||
|
cover: [],
|
||||||
|
artists: [
|
||||||
|
ArtistId(
|
||||||
|
id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
||||||
|
name: "Demi Lovato",
|
||||||
|
),
|
||||||
|
],
|
||||||
|
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
||||||
|
album: Some(AlbumId(
|
||||||
|
id: "MPREb_rMegpebUBPU",
|
||||||
|
name: "Unbroken",
|
||||||
|
)),
|
||||||
|
view_count: "[view_count]",
|
||||||
|
is_video: false,
|
||||||
|
track_nr: Some(15),
|
||||||
by_va: false,
|
by_va: false,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
variants: [],
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@ source: tests/youtube.rs
|
||||||
expression: album
|
expression: album
|
||||||
---
|
---
|
||||||
MusicAlbum(
|
MusicAlbum(
|
||||||
id: "MPREb_mXdQvyCqLnx",
|
id: "MPREb_rMegpebUBPU",
|
||||||
playlist_id: Some("OLAK5uy_mAg4o-PpgUtVY97PDxaY3DRTZt37WUDaQ"),
|
playlist_id: Some("OLAK5uy_nZzwnG9SLy5l-hd5Ze0FH4LfTWMqDXQdY"),
|
||||||
name: "[name]",
|
name: "[name]",
|
||||||
cover: "[cover]",
|
cover: "[cover]",
|
||||||
artists: [
|
artists: [
|
||||||
|
|
@ -16,13 +16,13 @@ MusicAlbum(
|
||||||
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
||||||
description: "[description]",
|
description: "[description]",
|
||||||
album_type: Album,
|
album_type: Album,
|
||||||
year: Some(2013),
|
year: Some(2011),
|
||||||
by_va: false,
|
by_va: false,
|
||||||
tracks: [
|
tracks: [
|
||||||
TrackItem(
|
TrackItem(
|
||||||
id: "8DmPZaCLMcE",
|
id: "js0moD0CIRQ",
|
||||||
name: "[name]",
|
name: "[name]",
|
||||||
duration: Some(211),
|
duration: Some(195),
|
||||||
cover: [],
|
cover: [],
|
||||||
artists: [
|
artists: [
|
||||||
ArtistId(
|
ArtistId(
|
||||||
|
|
@ -32,7 +32,7 @@ MusicAlbum(
|
||||||
],
|
],
|
||||||
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
||||||
album: Some(AlbumId(
|
album: Some(AlbumId(
|
||||||
id: "MPREb_mXdQvyCqLnx",
|
id: "MPREb_rMegpebUBPU",
|
||||||
name: "[name]",
|
name: "[name]",
|
||||||
)),
|
)),
|
||||||
view_count: "[view_count]",
|
view_count: "[view_count]",
|
||||||
|
|
@ -41,9 +41,9 @@ MusicAlbum(
|
||||||
by_va: false,
|
by_va: false,
|
||||||
),
|
),
|
||||||
TrackItem(
|
TrackItem(
|
||||||
id: "RRE0hz60t8I",
|
id: "-xFJfXE2Cms",
|
||||||
name: "[name]",
|
name: "[name]",
|
||||||
duration: Some(197),
|
duration: Some(193),
|
||||||
cover: [],
|
cover: [],
|
||||||
artists: [
|
artists: [
|
||||||
ArtistId(
|
ArtistId(
|
||||||
|
|
@ -53,7 +53,7 @@ MusicAlbum(
|
||||||
],
|
],
|
||||||
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
||||||
album: Some(AlbumId(
|
album: Some(AlbumId(
|
||||||
id: "MPREb_mXdQvyCqLnx",
|
id: "MPREb_rMegpebUBPU",
|
||||||
name: "[name]",
|
name: "[name]",
|
||||||
)),
|
)),
|
||||||
view_count: "[view_count]",
|
view_count: "[view_count]",
|
||||||
|
|
@ -62,9 +62,9 @@ MusicAlbum(
|
||||||
by_va: false,
|
by_va: false,
|
||||||
),
|
),
|
||||||
TrackItem(
|
TrackItem(
|
||||||
id: "O38fBJpWqGM",
|
id: "KWDAaQDq8CQ",
|
||||||
name: "[name]",
|
name: "[name]",
|
||||||
duration: Some(236),
|
duration: Some(187),
|
||||||
cover: [],
|
cover: [],
|
||||||
artists: [
|
artists: [
|
||||||
ArtistId(
|
ArtistId(
|
||||||
|
|
@ -74,7 +74,7 @@ MusicAlbum(
|
||||||
],
|
],
|
||||||
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
||||||
album: Some(AlbumId(
|
album: Some(AlbumId(
|
||||||
id: "MPREb_mXdQvyCqLnx",
|
id: "MPREb_rMegpebUBPU",
|
||||||
name: "[name]",
|
name: "[name]",
|
||||||
)),
|
)),
|
||||||
view_count: "[view_count]",
|
view_count: "[view_count]",
|
||||||
|
|
@ -83,9 +83,9 @@ MusicAlbum(
|
||||||
by_va: false,
|
by_va: false,
|
||||||
),
|
),
|
||||||
TrackItem(
|
TrackItem(
|
||||||
id: "BB1Q5XjCOho",
|
id: "0bcovdD1gQo",
|
||||||
name: "[name]",
|
name: "[name]",
|
||||||
duration: Some(234),
|
duration: Some(274),
|
||||||
cover: [],
|
cover: [],
|
||||||
artists: [
|
artists: [
|
||||||
ArtistId(
|
ArtistId(
|
||||||
|
|
@ -95,7 +95,7 @@ MusicAlbum(
|
||||||
],
|
],
|
||||||
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
||||||
album: Some(AlbumId(
|
album: Some(AlbumId(
|
||||||
id: "MPREb_mXdQvyCqLnx",
|
id: "MPREb_rMegpebUBPU",
|
||||||
name: "[name]",
|
name: "[name]",
|
||||||
)),
|
)),
|
||||||
view_count: "[view_count]",
|
view_count: "[view_count]",
|
||||||
|
|
@ -104,9 +104,9 @@ MusicAlbum(
|
||||||
by_va: false,
|
by_va: false,
|
||||||
),
|
),
|
||||||
TrackItem(
|
TrackItem(
|
||||||
id: "0VOm-MoZ3Xg",
|
id: "lJsqxERcxR8",
|
||||||
name: "[name]",
|
name: "[name]",
|
||||||
duration: Some(266),
|
duration: Some(242),
|
||||||
cover: [],
|
cover: [],
|
||||||
artists: [
|
artists: [
|
||||||
ArtistId(
|
ArtistId(
|
||||||
|
|
@ -116,7 +116,7 @@ MusicAlbum(
|
||||||
],
|
],
|
||||||
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
||||||
album: Some(AlbumId(
|
album: Some(AlbumId(
|
||||||
id: "MPREb_mXdQvyCqLnx",
|
id: "MPREb_rMegpebUBPU",
|
||||||
name: "[name]",
|
name: "[name]",
|
||||||
)),
|
)),
|
||||||
view_count: "[view_count]",
|
view_count: "[view_count]",
|
||||||
|
|
@ -125,9 +125,9 @@ MusicAlbum(
|
||||||
by_va: false,
|
by_va: false,
|
||||||
),
|
),
|
||||||
TrackItem(
|
TrackItem(
|
||||||
id: "vvm-XtXQ7wI",
|
id: "iLfB6-slQdc",
|
||||||
name: "[name]",
|
name: "[name]",
|
||||||
duration: Some(217),
|
duration: Some(199),
|
||||||
cover: [],
|
cover: [],
|
||||||
artists: [
|
artists: [
|
||||||
ArtistId(
|
ArtistId(
|
||||||
|
|
@ -137,7 +137,7 @@ MusicAlbum(
|
||||||
],
|
],
|
||||||
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
||||||
album: Some(AlbumId(
|
album: Some(AlbumId(
|
||||||
id: "MPREb_mXdQvyCqLnx",
|
id: "MPREb_rMegpebUBPU",
|
||||||
name: "[name]",
|
name: "[name]",
|
||||||
)),
|
)),
|
||||||
view_count: "[view_count]",
|
view_count: "[view_count]",
|
||||||
|
|
@ -146,9 +146,9 @@ MusicAlbum(
|
||||||
by_va: false,
|
by_va: false,
|
||||||
),
|
),
|
||||||
TrackItem(
|
TrackItem(
|
||||||
id: "CJYhllodSAc",
|
id: "4DjGZIdMcZk",
|
||||||
name: "[name]",
|
name: "[name]",
|
||||||
duration: Some(215),
|
duration: Some(194),
|
||||||
cover: [],
|
cover: [],
|
||||||
artists: [
|
artists: [
|
||||||
ArtistId(
|
ArtistId(
|
||||||
|
|
@ -158,7 +158,7 @@ MusicAlbum(
|
||||||
],
|
],
|
||||||
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
||||||
album: Some(AlbumId(
|
album: Some(AlbumId(
|
||||||
id: "MPREb_mXdQvyCqLnx",
|
id: "MPREb_rMegpebUBPU",
|
||||||
name: "[name]",
|
name: "[name]",
|
||||||
)),
|
)),
|
||||||
view_count: "[view_count]",
|
view_count: "[view_count]",
|
||||||
|
|
@ -167,9 +167,9 @@ MusicAlbum(
|
||||||
by_va: false,
|
by_va: false,
|
||||||
),
|
),
|
||||||
TrackItem(
|
TrackItem(
|
||||||
id: "tTmJoiCIebg",
|
id: "hakoZyX4QIc",
|
||||||
name: "[name]",
|
name: "[name]",
|
||||||
duration: Some(202),
|
duration: Some(172),
|
||||||
cover: [],
|
cover: [],
|
||||||
artists: [
|
artists: [
|
||||||
ArtistId(
|
ArtistId(
|
||||||
|
|
@ -179,7 +179,7 @@ MusicAlbum(
|
||||||
],
|
],
|
||||||
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
||||||
album: Some(AlbumId(
|
album: Some(AlbumId(
|
||||||
id: "MPREb_mXdQvyCqLnx",
|
id: "MPREb_rMegpebUBPU",
|
||||||
name: "[name]",
|
name: "[name]",
|
||||||
)),
|
)),
|
||||||
view_count: "[view_count]",
|
view_count: "[view_count]",
|
||||||
|
|
@ -188,9 +188,9 @@ MusicAlbum(
|
||||||
by_va: false,
|
by_va: false,
|
||||||
),
|
),
|
||||||
TrackItem(
|
TrackItem(
|
||||||
id: "qmGtn0TQ8Fk",
|
id: "GOh96GiHVgI",
|
||||||
name: "[name]",
|
name: "[name]",
|
||||||
duration: Some(205),
|
duration: Some(214),
|
||||||
cover: [],
|
cover: [],
|
||||||
artists: [
|
artists: [
|
||||||
ArtistId(
|
ArtistId(
|
||||||
|
|
@ -200,7 +200,7 @@ MusicAlbum(
|
||||||
],
|
],
|
||||||
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
||||||
album: Some(AlbumId(
|
album: Some(AlbumId(
|
||||||
id: "MPREb_mXdQvyCqLnx",
|
id: "MPREb_rMegpebUBPU",
|
||||||
name: "[name]",
|
name: "[name]",
|
||||||
)),
|
)),
|
||||||
view_count: "[view_count]",
|
view_count: "[view_count]",
|
||||||
|
|
@ -209,9 +209,9 @@ MusicAlbum(
|
||||||
by_va: false,
|
by_va: false,
|
||||||
),
|
),
|
||||||
TrackItem(
|
TrackItem(
|
||||||
id: "Bb_j4TTlEZA",
|
id: "ne_jRAHABx0",
|
||||||
name: "[name]",
|
name: "[name]",
|
||||||
duration: Some(198),
|
duration: Some(206),
|
||||||
cover: [],
|
cover: [],
|
||||||
artists: [
|
artists: [
|
||||||
ArtistId(
|
ArtistId(
|
||||||
|
|
@ -221,7 +221,7 @@ MusicAlbum(
|
||||||
],
|
],
|
||||||
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
||||||
album: Some(AlbumId(
|
album: Some(AlbumId(
|
||||||
id: "MPREb_mXdQvyCqLnx",
|
id: "MPREb_rMegpebUBPU",
|
||||||
name: "[name]",
|
name: "[name]",
|
||||||
)),
|
)),
|
||||||
view_count: "[view_count]",
|
view_count: "[view_count]",
|
||||||
|
|
@ -230,9 +230,9 @@ MusicAlbum(
|
||||||
by_va: false,
|
by_va: false,
|
||||||
),
|
),
|
||||||
TrackItem(
|
TrackItem(
|
||||||
id: "rVey1Qgn1vc",
|
id: "g8oyC2g5V64",
|
||||||
name: "[name]",
|
name: "[name]",
|
||||||
duration: Some(237),
|
duration: Some(222),
|
||||||
cover: [],
|
cover: [],
|
||||||
artists: [
|
artists: [
|
||||||
ArtistId(
|
ArtistId(
|
||||||
|
|
@ -242,7 +242,7 @@ MusicAlbum(
|
||||||
],
|
],
|
||||||
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
||||||
album: Some(AlbumId(
|
album: Some(AlbumId(
|
||||||
id: "MPREb_mXdQvyCqLnx",
|
id: "MPREb_rMegpebUBPU",
|
||||||
name: "[name]",
|
name: "[name]",
|
||||||
)),
|
)),
|
||||||
view_count: "[view_count]",
|
view_count: "[view_count]",
|
||||||
|
|
@ -251,9 +251,9 @@ MusicAlbum(
|
||||||
by_va: false,
|
by_va: false,
|
||||||
),
|
),
|
||||||
TrackItem(
|
TrackItem(
|
||||||
id: "mdXNWcYYZ10",
|
id: "RxTEv7wXvG0",
|
||||||
name: "[name]",
|
name: "[name]",
|
||||||
duration: Some(230),
|
duration: Some(178),
|
||||||
cover: [],
|
cover: [],
|
||||||
artists: [
|
artists: [
|
||||||
ArtistId(
|
ArtistId(
|
||||||
|
|
@ -263,7 +263,7 @@ MusicAlbum(
|
||||||
],
|
],
|
||||||
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
||||||
album: Some(AlbumId(
|
album: Some(AlbumId(
|
||||||
id: "MPREb_mXdQvyCqLnx",
|
id: "MPREb_rMegpebUBPU",
|
||||||
name: "[name]",
|
name: "[name]",
|
||||||
)),
|
)),
|
||||||
view_count: "[view_count]",
|
view_count: "[view_count]",
|
||||||
|
|
@ -272,9 +272,9 @@ MusicAlbum(
|
||||||
by_va: false,
|
by_va: false,
|
||||||
),
|
),
|
||||||
TrackItem(
|
TrackItem(
|
||||||
id: "yX40-XWjWe0",
|
id: "V8iVLlSZeNs",
|
||||||
name: "[name]",
|
name: "[name]",
|
||||||
duration: Some(232),
|
duration: Some(231),
|
||||||
cover: [],
|
cover: [],
|
||||||
artists: [
|
artists: [
|
||||||
ArtistId(
|
ArtistId(
|
||||||
|
|
@ -284,7 +284,7 @@ MusicAlbum(
|
||||||
],
|
],
|
||||||
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
||||||
album: Some(AlbumId(
|
album: Some(AlbumId(
|
||||||
id: "MPREb_mXdQvyCqLnx",
|
id: "MPREb_rMegpebUBPU",
|
||||||
name: "[name]",
|
name: "[name]",
|
||||||
)),
|
)),
|
||||||
view_count: "[view_count]",
|
view_count: "[view_count]",
|
||||||
|
|
@ -292,23 +292,11 @@ MusicAlbum(
|
||||||
track_nr: Some(13),
|
track_nr: Some(13),
|
||||||
by_va: false,
|
by_va: false,
|
||||||
),
|
),
|
||||||
],
|
TrackItem(
|
||||||
variants: [
|
id: "OESslKlpao4",
|
||||||
AlbumItem(
|
name: "[name]",
|
||||||
id: "MPREb_bURBKIaURqK",
|
duration: Some(241),
|
||||||
name: "Demi (Deluxe)",
|
cover: [],
|
||||||
cover: [
|
|
||||||
Thumbnail(
|
|
||||||
url: "https://lh3.googleusercontent.com/p6Fy9_hfUY-Y6BXzdsIfOKpSZBhjGkDrpPcbA8DNrR1zvCFUL7p3cCeUywx8PxQ6FX7eb30MsWq3fpn2=w226-h226-l90-rj",
|
|
||||||
width: 226,
|
|
||||||
height: 226,
|
|
||||||
),
|
|
||||||
Thumbnail(
|
|
||||||
url: "https://lh3.googleusercontent.com/p6Fy9_hfUY-Y6BXzdsIfOKpSZBhjGkDrpPcbA8DNrR1zvCFUL7p3cCeUywx8PxQ6FX7eb30MsWq3fpn2=w544-h544-l90-rj",
|
|
||||||
width: 544,
|
|
||||||
height: 544,
|
|
||||||
),
|
|
||||||
],
|
|
||||||
artists: [
|
artists: [
|
||||||
ArtistId(
|
ArtistId(
|
||||||
id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
||||||
|
|
@ -316,9 +304,36 @@ MusicAlbum(
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
||||||
album_type: Album,
|
album: Some(AlbumId(
|
||||||
year: None,
|
id: "MPREb_rMegpebUBPU",
|
||||||
|
name: "[name]",
|
||||||
|
)),
|
||||||
|
view_count: "[view_count]",
|
||||||
|
is_video: false,
|
||||||
|
track_nr: Some(14),
|
||||||
|
by_va: false,
|
||||||
|
),
|
||||||
|
TrackItem(
|
||||||
|
id: "ennw5cHAebo",
|
||||||
|
name: "[name]",
|
||||||
|
duration: Some(223),
|
||||||
|
cover: [],
|
||||||
|
artists: [
|
||||||
|
ArtistId(
|
||||||
|
id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
||||||
|
name: "[name]",
|
||||||
|
),
|
||||||
|
],
|
||||||
|
artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"),
|
||||||
|
album: Some(AlbumId(
|
||||||
|
id: "MPREb_rMegpebUBPU",
|
||||||
|
name: "[name]",
|
||||||
|
)),
|
||||||
|
view_count: "[view_count]",
|
||||||
|
is_video: false,
|
||||||
|
track_nr: Some(15),
|
||||||
by_va: false,
|
by_va: false,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
variants: [],
|
||||||
)
|
)
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -1465,7 +1465,7 @@ fn music_playlist_not_found(rp: RustyPipe) {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[rstest]
|
#[rstest]
|
||||||
#[case::one_artist("one_artist", "MPREb_mXdQvyCqLnx")]
|
#[case::one_artist("one_artist", "MPREb_rMegpebUBPU")]
|
||||||
#[case::various_artists("various_artists", "MPREb_8QkDeEIawvX")]
|
#[case::various_artists("various_artists", "MPREb_8QkDeEIawvX")]
|
||||||
#[case::single("single", "MPREb_bHfHGoy7vuv")]
|
#[case::single("single", "MPREb_bHfHGoy7vuv")]
|
||||||
#[case::ep("ep", "MPREb_u1I69lSAe5v")]
|
#[case::ep("ep", "MPREb_u1I69lSAe5v")]
|
||||||
|
|
@ -1512,7 +1512,7 @@ fn music_album_not_found(rp: RustyPipe) {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[rstest]
|
#[rstest]
|
||||||
#[case::basic_all("basic_all", "UCNezSmfQ8VIgvHUNj1Gzx6A", true, 15, 1)]
|
#[case::basic_all("basic_all", "UCFKUUtHjT4iq3p0JJA13SOA", true, 15, 1)]
|
||||||
// TODO: wait for A/B test 6 to stabilize
|
// TODO: wait for A/B test 6 to stabilize
|
||||||
// #[case::basic("basic", "UC7cl4MmM6ZZ2TcFyMk_b4pg", false, 15, 2)]
|
// #[case::basic("basic", "UC7cl4MmM6ZZ2TcFyMk_b4pg", false, 15, 2)]
|
||||||
#[case::no_more_albums("no_more_albums", "UCOR4_bSVIXPsGa4BbCSt60Q", true, 15, 0)]
|
#[case::no_more_albums("no_more_albums", "UCOR4_bSVIXPsGa4BbCSt60Q", true, 15, 0)]
|
||||||
|
|
@ -1905,12 +1905,12 @@ fn music_search_episode(rp: RustyPipe, #[case] videos: bool) {
|
||||||
false
|
false
|
||||||
)]
|
)]
|
||||||
#[case::album(
|
#[case::album(
|
||||||
"demi",
|
"unbroken",
|
||||||
"Demi",
|
"Unbroken",
|
||||||
"MPREb_mXdQvyCqLnx",
|
"MPREb_rMegpebUBPU",
|
||||||
"Demi Lovato",
|
"Demi Lovato",
|
||||||
"UCwem2sj-QUJCiWiPAo9JuAw",
|
"UCwem2sj-QUJCiWiPAo9JuAw",
|
||||||
2013,
|
2011,
|
||||||
AlbumType::Album,
|
AlbumType::Album,
|
||||||
true
|
true
|
||||||
)]
|
)]
|
||||||
|
|
|
||||||
Reference in a new issue