test: add integration tests for YTM albums/search
This commit is contained in:
parent
c7ae2f8531
commit
b38bc711c7
16 changed files with 3743 additions and 286 deletions
2418
tests/snapshots/youtube__music_album_audiobook.snap
Normal file
2418
tests/snapshots/youtube__music_album_audiobook.snap
Normal file
File diff suppressed because it is too large
Load diff
108
tests/snapshots/youtube__music_album_ep.snap
Normal file
108
tests/snapshots/youtube__music_album_ep.snap
Normal file
|
|
@ -0,0 +1,108 @@
|
|||
---
|
||||
source: tests/youtube.rs
|
||||
expression: album
|
||||
---
|
||||
MusicAlbum(
|
||||
id: "MPREb_u1I69lSAe5v",
|
||||
playlist_id: Some("OLAK5uy_lGP_zv0vJDUlecQDzugUJmjcF7pvyVNyY"),
|
||||
name: "Waldbrand",
|
||||
cover: "[cover]",
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UCpJyCbFbdTrx0M90HCNBHFQ",
|
||||
name: "Madeline Juno",
|
||||
),
|
||||
],
|
||||
artists_txt: "Madeline Juno",
|
||||
album_type: Ep,
|
||||
year: Some(2016),
|
||||
by_va: false,
|
||||
tracks: [
|
||||
TrackItem(
|
||||
id: "aGd3VKSOTxY",
|
||||
title: "Ich wache auf",
|
||||
duration: 221,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UCpJyCbFbdTrx0M90HCNBHFQ",
|
||||
name: "Madeline Juno",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Madeline Juno"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(1),
|
||||
),
|
||||
TrackItem(
|
||||
id: "lhPOMUjV4rE",
|
||||
title: "Waldbrand",
|
||||
duration: 208,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UCpJyCbFbdTrx0M90HCNBHFQ",
|
||||
name: "Madeline Juno",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Madeline Juno"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(2),
|
||||
),
|
||||
TrackItem(
|
||||
id: "Bu26uFtpt58",
|
||||
title: "Verlernt",
|
||||
duration: 223,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UCpJyCbFbdTrx0M90HCNBHFQ",
|
||||
name: "Madeline Juno",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Madeline Juno"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(3),
|
||||
),
|
||||
TrackItem(
|
||||
id: "RgwNqqiVqdY",
|
||||
title: "In Farbe",
|
||||
duration: 221,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UCpJyCbFbdTrx0M90HCNBHFQ",
|
||||
name: "Madeline Juno",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Madeline Juno"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(4),
|
||||
),
|
||||
TrackItem(
|
||||
id: "2TuOh30XbCI",
|
||||
title: "Stadt im Hinterland",
|
||||
duration: 197,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UCpJyCbFbdTrx0M90HCNBHFQ",
|
||||
name: "Madeline Juno",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Madeline Juno"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(5),
|
||||
),
|
||||
],
|
||||
variants: [],
|
||||
)
|
||||
355
tests/snapshots/youtube__music_album_one_artist.snap
Normal file
355
tests/snapshots/youtube__music_album_one_artist.snap
Normal file
|
|
@ -0,0 +1,355 @@
|
|||
---
|
||||
source: tests/youtube.rs
|
||||
expression: album
|
||||
---
|
||||
MusicAlbum(
|
||||
id: "MPREb_nlBWQROfvjo",
|
||||
playlist_id: Some("OLAK5uy_myZkBX2d2TzcrlQhIwLy3hCj2MkAMaPR4"),
|
||||
name: "Märchen enden gut",
|
||||
cover: "[cover]",
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UC_vmjW5e1xEHhYjY2a0kK1A",
|
||||
name: "Oonagh",
|
||||
),
|
||||
],
|
||||
artists_txt: "Oonagh",
|
||||
album_type: Album,
|
||||
year: Some(2016),
|
||||
by_va: false,
|
||||
tracks: [
|
||||
TrackItem(
|
||||
id: "g0iRiJ_ck48",
|
||||
title: "Aulë und Yavanna",
|
||||
duration: 216,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UC_vmjW5e1xEHhYjY2a0kK1A",
|
||||
name: "Oonagh",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Oonagh"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(1),
|
||||
),
|
||||
TrackItem(
|
||||
id: "rREEBXp0y9s",
|
||||
title: "Numenor",
|
||||
duration: 224,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UC_vmjW5e1xEHhYjY2a0kK1A",
|
||||
name: "Oonagh",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Oonagh"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(2),
|
||||
),
|
||||
TrackItem(
|
||||
id: "zvU5Y8Q19hU",
|
||||
title: "Das Mädchen und die Liebe (feat. Santiano)",
|
||||
duration: 176,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UC_vmjW5e1xEHhYjY2a0kK1A",
|
||||
name: "Oonagh",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Oonagh"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(3),
|
||||
),
|
||||
TrackItem(
|
||||
id: "ARKLrzzTQA0",
|
||||
title: "Niënna",
|
||||
duration: 215,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UC_vmjW5e1xEHhYjY2a0kK1A",
|
||||
name: "Oonagh",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Oonagh"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(4),
|
||||
),
|
||||
TrackItem(
|
||||
id: "tstLgN8A_Ng",
|
||||
title: "Der fahle Mond",
|
||||
duration: 268,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UC_vmjW5e1xEHhYjY2a0kK1A",
|
||||
name: "Oonagh",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Oonagh"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(5),
|
||||
),
|
||||
TrackItem(
|
||||
id: "k2DjgQOY3Ts",
|
||||
title: "Weise den Weg",
|
||||
duration: 202,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UC_vmjW5e1xEHhYjY2a0kK1A",
|
||||
name: "Oonagh",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Oonagh"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(6),
|
||||
),
|
||||
TrackItem(
|
||||
id: "azHwhecxEsI",
|
||||
title: "Zeit der Sommernächte",
|
||||
duration: 185,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UC_vmjW5e1xEHhYjY2a0kK1A",
|
||||
name: "Oonagh",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Oonagh"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(7),
|
||||
),
|
||||
TrackItem(
|
||||
id: "_FcsdYIQ2co",
|
||||
title: "Märchen enden gut",
|
||||
duration: 226,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UC_vmjW5e1xEHhYjY2a0kK1A",
|
||||
name: "Oonagh",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Oonagh"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(8),
|
||||
),
|
||||
TrackItem(
|
||||
id: "27bOWEbshyE",
|
||||
title: "Das Mädchen und der Tod",
|
||||
duration: 207,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UC_vmjW5e1xEHhYjY2a0kK1A",
|
||||
name: "Oonagh",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Oonagh"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(9),
|
||||
),
|
||||
TrackItem(
|
||||
id: "riD_3oZwt8w",
|
||||
title: "Wir sehn uns wieder",
|
||||
duration: 211,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UC_vmjW5e1xEHhYjY2a0kK1A",
|
||||
name: "Oonagh",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Oonagh"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(10),
|
||||
),
|
||||
TrackItem(
|
||||
id: "8GNvjF3no9s",
|
||||
title: "Tanz mit mir",
|
||||
duration: 179,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UC_vmjW5e1xEHhYjY2a0kK1A",
|
||||
name: "Oonagh",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Oonagh"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(11),
|
||||
),
|
||||
TrackItem(
|
||||
id: "YHMFzf1uN2U",
|
||||
title: "Nachtigall",
|
||||
duration: 218,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UC_vmjW5e1xEHhYjY2a0kK1A",
|
||||
name: "Oonagh",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Oonagh"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(12),
|
||||
),
|
||||
TrackItem(
|
||||
id: "jvV-z5F3oAo",
|
||||
title: "Gayatri Mantra",
|
||||
duration: 277,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UC_vmjW5e1xEHhYjY2a0kK1A",
|
||||
name: "Oonagh",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Oonagh"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(13),
|
||||
),
|
||||
TrackItem(
|
||||
id: "u8_9cxlrh8k",
|
||||
title: "Sing mir deine Lieder",
|
||||
duration: 204,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UC_vmjW5e1xEHhYjY2a0kK1A",
|
||||
name: "Oonagh",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Oonagh"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(14),
|
||||
),
|
||||
TrackItem(
|
||||
id: "gSvKcvM1Wk0",
|
||||
title: "Laurië lantar",
|
||||
duration: 202,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UC_vmjW5e1xEHhYjY2a0kK1A",
|
||||
name: "Oonagh",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Oonagh"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(15),
|
||||
),
|
||||
TrackItem(
|
||||
id: "wQHgKRJ0pDQ",
|
||||
title: "Wächter vor dem Tor",
|
||||
duration: 222,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UC_vmjW5e1xEHhYjY2a0kK1A",
|
||||
name: "Oonagh",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Oonagh"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(16),
|
||||
),
|
||||
TrackItem(
|
||||
id: "Ckz5i6-hzf0",
|
||||
title: "Stroh zu Gold",
|
||||
duration: 177,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UC_vmjW5e1xEHhYjY2a0kK1A",
|
||||
name: "Oonagh",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Oonagh"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(17),
|
||||
),
|
||||
TrackItem(
|
||||
id: "y5zuUgyFqrc",
|
||||
title: "Sonnenwendnacht",
|
||||
duration: 220,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UC_vmjW5e1xEHhYjY2a0kK1A",
|
||||
name: "Oonagh",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Oonagh"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(18),
|
||||
),
|
||||
],
|
||||
variants: [
|
||||
AlbumItem(
|
||||
id: "MPREb_jk6Msw8izou",
|
||||
name: "Märchen enden gut (Nyáre Ranta (Märchenedition))",
|
||||
cover: [
|
||||
Thumbnail(
|
||||
url: "https://lh3.googleusercontent.com/BKgnW_-hapCHk599AtRfTYZGdXVIo0C4bJp1Bh7qUpGK7fNAXGW8Bhv2x-ukeFM8cuxKbGqqGaTo8fZASA=w226-h226-l90-rj",
|
||||
width: 226,
|
||||
height: 226,
|
||||
),
|
||||
Thumbnail(
|
||||
url: "https://lh3.googleusercontent.com/BKgnW_-hapCHk599AtRfTYZGdXVIo0C4bJp1Bh7qUpGK7fNAXGW8Bhv2x-ukeFM8cuxKbGqqGaTo8fZASA=w544-h544-l90-rj",
|
||||
width: 544,
|
||||
height: 544,
|
||||
),
|
||||
],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UC_vmjW5e1xEHhYjY2a0kK1A",
|
||||
name: "Oonagh",
|
||||
),
|
||||
],
|
||||
artists_txt: "Oonagh",
|
||||
album_type: Album,
|
||||
year: None,
|
||||
),
|
||||
],
|
||||
)
|
||||
261
tests/snapshots/youtube__music_album_show.snap
Normal file
261
tests/snapshots/youtube__music_album_show.snap
Normal file
|
|
@ -0,0 +1,261 @@
|
|||
---
|
||||
source: tests/youtube.rs
|
||||
expression: album
|
||||
---
|
||||
MusicAlbum(
|
||||
id: "MPREb_cwzk8EUwypZ",
|
||||
playlist_id: Some("OLAK5uy_kODvYZ5CEpYdtd4VPsmg0eRTlpazG0dvA"),
|
||||
name: "Folge 2: Eiszeit (Das Original-Hörspiel zur TV-Serie)",
|
||||
cover: "[cover]",
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UCNoyEM0e2A7WlsBmP2w3avg",
|
||||
name: "Kingdom Force",
|
||||
),
|
||||
],
|
||||
artists_txt: "Kingdom Force",
|
||||
album_type: Album,
|
||||
year: Some(2022),
|
||||
by_va: false,
|
||||
tracks: [
|
||||
TrackItem(
|
||||
id: "lSbKz5LWvKE",
|
||||
title: "Achtung, Waldbrand - Teil 1",
|
||||
duration: 229,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UCNoyEM0e2A7WlsBmP2w3avg",
|
||||
name: "Kingdom Force",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Kingdom Force"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(1),
|
||||
),
|
||||
TrackItem(
|
||||
id: "fdO6gu4qjRw",
|
||||
title: "Achtung, Waldbrand - Teil 2",
|
||||
duration: 235,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UCNoyEM0e2A7WlsBmP2w3avg",
|
||||
name: "Kingdom Force",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Kingdom Force"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(2),
|
||||
),
|
||||
TrackItem(
|
||||
id: "muCxstXirvY",
|
||||
title: "Achtung, Waldbrand - Teil 3",
|
||||
duration: 197,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UCNoyEM0e2A7WlsBmP2w3avg",
|
||||
name: "Kingdom Force",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Kingdom Force"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(3),
|
||||
),
|
||||
TrackItem(
|
||||
id: "aG1N0vo__Ng",
|
||||
title: "Eiszeit - Teil 1",
|
||||
duration: 186,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UCNoyEM0e2A7WlsBmP2w3avg",
|
||||
name: "Kingdom Force",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Kingdom Force"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(4),
|
||||
),
|
||||
TrackItem(
|
||||
id: "roHhLNYS9yo",
|
||||
title: "Eiszeit - Teil 2",
|
||||
duration: 188,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UCNoyEM0e2A7WlsBmP2w3avg",
|
||||
name: "Kingdom Force",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Kingdom Force"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(5),
|
||||
),
|
||||
TrackItem(
|
||||
id: "nJ49NuLvcAw",
|
||||
title: "Eiszeit - Teil 3",
|
||||
duration: 205,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UCNoyEM0e2A7WlsBmP2w3avg",
|
||||
name: "Kingdom Force",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Kingdom Force"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(6),
|
||||
),
|
||||
TrackItem(
|
||||
id: "Me119D570h0",
|
||||
title: "Eiszeit - Teil 4",
|
||||
duration: 219,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UCNoyEM0e2A7WlsBmP2w3avg",
|
||||
name: "Kingdom Force",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Kingdom Force"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(7),
|
||||
),
|
||||
TrackItem(
|
||||
id: "YXnRLK-qKG8",
|
||||
title: "Im Sinkloch - Teil 1",
|
||||
duration: 240,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UCNoyEM0e2A7WlsBmP2w3avg",
|
||||
name: "Kingdom Force",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Kingdom Force"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(8),
|
||||
),
|
||||
TrackItem(
|
||||
id: "A61wz1jz9X0",
|
||||
title: "Im Sinkloch - Teil 2",
|
||||
duration: 239,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UCNoyEM0e2A7WlsBmP2w3avg",
|
||||
name: "Kingdom Force",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Kingdom Force"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(9),
|
||||
),
|
||||
TrackItem(
|
||||
id: "u_S08EJOTUg",
|
||||
title: "Im Sinkloch - Teil 3",
|
||||
duration: 197,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UCNoyEM0e2A7WlsBmP2w3avg",
|
||||
name: "Kingdom Force",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Kingdom Force"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(10),
|
||||
),
|
||||
TrackItem(
|
||||
id: "0qwYJihV1EU",
|
||||
title: "Vorsicht, heiß - Teil 1",
|
||||
duration: 201,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UCNoyEM0e2A7WlsBmP2w3avg",
|
||||
name: "Kingdom Force",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Kingdom Force"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(11),
|
||||
),
|
||||
TrackItem(
|
||||
id: "zjhoyTnEzuQ",
|
||||
title: "Vorsicht, heiß - Teil 2",
|
||||
duration: 187,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UCNoyEM0e2A7WlsBmP2w3avg",
|
||||
name: "Kingdom Force",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Kingdom Force"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(12),
|
||||
),
|
||||
TrackItem(
|
||||
id: "oDjDd0UBzAY",
|
||||
title: "Vorsicht, heiß - Teil 3",
|
||||
duration: 183,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UCNoyEM0e2A7WlsBmP2w3avg",
|
||||
name: "Kingdom Force",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Kingdom Force"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(13),
|
||||
),
|
||||
TrackItem(
|
||||
id: "_3-WVmqgi-Q",
|
||||
title: "Vorsicht, heiß - Teil 4",
|
||||
duration: 193,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UCNoyEM0e2A7WlsBmP2w3avg",
|
||||
name: "Kingdom Force",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Kingdom Force"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(14),
|
||||
),
|
||||
],
|
||||
variants: [],
|
||||
)
|
||||
48
tests/snapshots/youtube__music_album_single.snap
Normal file
48
tests/snapshots/youtube__music_album_single.snap
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
---
|
||||
source: tests/youtube.rs
|
||||
expression: album
|
||||
---
|
||||
MusicAlbum(
|
||||
id: "MPREb_bHfHGoy7vuv",
|
||||
playlist_id: Some("OLAK5uy_kdSWBZ-9AZDkYkuy0QCc3p0KO9DEHVNH0"),
|
||||
name: "Der Himmel reißt auf",
|
||||
cover: "[cover]",
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UCXGYZ-OhdOpPBamHX3K9YRg",
|
||||
name: "Joel Brandenstein",
|
||||
),
|
||||
ChannelId(
|
||||
id: "UCFTcSVPYRWlDoHisR-ZKwgw",
|
||||
name: "Vanessa Mai",
|
||||
),
|
||||
],
|
||||
artists_txt: "Joel Brandenstein & Vanessa Mai",
|
||||
album_type: Single,
|
||||
year: Some(2020),
|
||||
by_va: false,
|
||||
tracks: [
|
||||
TrackItem(
|
||||
id: "XX0epju-YvY",
|
||||
title: "Der Himmel reißt auf",
|
||||
duration: 183,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UCXGYZ-OhdOpPBamHX3K9YRg",
|
||||
name: "Joel Brandenstein",
|
||||
),
|
||||
ChannelId(
|
||||
id: "UCFTcSVPYRWlDoHisR-ZKwgw",
|
||||
name: "Vanessa Mai",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Joel Brandenstein & Vanessa Mai"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(1),
|
||||
),
|
||||
],
|
||||
variants: [],
|
||||
)
|
||||
95
tests/snapshots/youtube__music_album_various_artists.snap
Normal file
95
tests/snapshots/youtube__music_album_various_artists.snap
Normal file
|
|
@ -0,0 +1,95 @@
|
|||
---
|
||||
source: tests/youtube.rs
|
||||
expression: album
|
||||
---
|
||||
MusicAlbum(
|
||||
id: "MPREb_8QkDeEIawvX",
|
||||
playlist_id: Some("OLAK5uy_mEX9ljZeeEWgTM1xLL1isyiGaWXoPyoOk"),
|
||||
name: "<Queendom2> FINAL",
|
||||
cover: "[cover]",
|
||||
artists: [],
|
||||
artists_txt: "Various Artists",
|
||||
album_type: Single,
|
||||
year: Some(2022),
|
||||
by_va: true,
|
||||
tracks: [
|
||||
TrackItem(
|
||||
id: "8IqLxg0GqXc",
|
||||
title: "Waka Boom (My Way) (feat. Lee Young Ji)",
|
||||
duration: 274,
|
||||
cover: [],
|
||||
artists: [],
|
||||
artists_txt: Some("HYOLYN"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(1),
|
||||
),
|
||||
TrackItem(
|
||||
id: "9WYpLYAEub0",
|
||||
title: "AURA",
|
||||
duration: 216,
|
||||
cover: [],
|
||||
artists: [],
|
||||
artists_txt: Some("WJSN"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(2),
|
||||
),
|
||||
TrackItem(
|
||||
id: "R48tE237bW4",
|
||||
title: "THE GIRLS (Can’t turn me down)",
|
||||
duration: 239,
|
||||
cover: [],
|
||||
artists: [
|
||||
ChannelId(
|
||||
id: "UCAKvDuIX3m1AUdPpDSqV_3w",
|
||||
name: "Kep1er",
|
||||
),
|
||||
],
|
||||
artists_txt: Some("Kep1er"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(3),
|
||||
),
|
||||
TrackItem(
|
||||
id: "-UzsoR6z-vg",
|
||||
title: "Red Sun!",
|
||||
duration: 254,
|
||||
cover: [],
|
||||
artists: [],
|
||||
artists_txt: Some("VIVIZ"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(4),
|
||||
),
|
||||
TrackItem(
|
||||
id: "kbNVyn8Ex28",
|
||||
title: "POSE",
|
||||
duration: 187,
|
||||
cover: [],
|
||||
artists: [],
|
||||
artists_txt: Some("LOONA"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(5),
|
||||
),
|
||||
TrackItem(
|
||||
id: "NJrQZUzWP5Y",
|
||||
title: "Whistle",
|
||||
duration: 224,
|
||||
cover: [],
|
||||
artists: [],
|
||||
artists_txt: Some("Brave Girls"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: true,
|
||||
track_nr: Some(6),
|
||||
),
|
||||
],
|
||||
variants: [],
|
||||
)
|
||||
Reference in a new issue