test: add integration tests for YTM albums/search

This commit is contained in:
ThetaDev 2022-11-01 15:37:06 +01:00
parent c7ae2f8531
commit b38bc711c7
16 changed files with 3743 additions and 286 deletions

View 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 (Cant 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: [],
)