musichoard/tests/testlib.rs

1027 lines
42 KiB
Rust
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

use musichoard::{
Album, AlbumId, Artist, ArtistId, ArtistProperties, Bandcamp, Collection, Format, MusicBrainz,
MusicButler, Qobuz, Quality, Track, TrackId,
};
use once_cell::sync::Lazy;
pub static COLLECTION: Lazy<Vec<Artist>> = Lazy::new(|| -> Collection {
vec![
Artist {
id: ArtistId {
name: String::from("Eluveitie"),
},
properties: ArtistProperties {
musicbrainz: Some(MusicBrainz::new(
"https://musicbrainz.org/artist/8000598a-5edb-401c-8e6d-36b167feaf38",
).unwrap()),
musicbutler: vec![
MusicButler::new("https://www.musicbutler.io/artist-page/269358403").unwrap(),
],
bandcamp: vec![],
qobuz: Some(Qobuz::new(
"https://www.qobuz.com/nl-nl/interpreter/eluveitie/download-streaming-albums",
).unwrap()),
},
albums: vec![
Album {
id: AlbumId {
year: 2004,
title: String::from("Vên [rerecorded]"),
},
tracks: vec![
Track {
id: TrackId {
number: 01,
title: String::from("Verja Urit an Bitus"),
},
artist: vec![String::from("Eluveitie")],
quality: Quality {
format: Format::Flac,
bitrate: 961,
},
},
Track {
id: TrackId {
number: 02,
title: String::from("Uis Elveti"),
},
artist: vec![String::from("Eluveitie")],
quality: Quality {
format: Format::Flac,
bitrate: 1067,
},
},
Track {
id: TrackId {
number: 03,
title: String::from("Ôrô"),
},
artist: vec![String::from("Eluveitie")],
quality: Quality {
format: Format::Flac,
bitrate: 933,
},
},
Track {
id: TrackId {
number: 04,
title: String::from("Lament"),
},
artist: vec![String::from("Eluveitie")],
quality: Quality {
format: Format::Flac,
bitrate: 1083,
},
},
Track {
id: TrackId {
number: 05,
title: String::from("Druid"),
},
artist: vec![String::from("Eluveitie")],
quality: Quality {
format: Format::Flac,
bitrate: 1073,
},
},
Track {
id: TrackId {
number: 06,
title: String::from("Jêzaïg"),
},
artist: vec![String::from("Eluveitie")],
quality: Quality {
format: Format::Flac,
bitrate: 1002,
},
},
],
},
Album {
id: AlbumId {
year: 2008,
title: String::from("Slania"),
},
tracks: vec![
Track {
id: TrackId {
number: 01,
title: String::from("Samon"),
},
artist: vec![String::from("Eluveitie")],
quality: Quality {
format: Format::Flac,
bitrate: 953,
},
},
Track {
id: TrackId {
number: 02,
title: String::from("Primordial Breath"),
},
artist: vec![String::from("Eluveitie")],
quality: Quality {
format: Format::Flac,
bitrate: 1103,
},
},
Track {
id: TrackId {
number: 03,
title: String::from("Inis Mona"),
},
artist: vec![String::from("Eluveitie")],
quality: Quality {
format: Format::Flac,
bitrate: 1117,
},
},
Track {
id: TrackId {
number: 04,
title: String::from("Gray Sublime Archon"),
},
artist: vec![String::from("Eluveitie")],
quality: Quality {
format: Format::Flac,
bitrate: 1092,
},
},
Track {
id: TrackId {
number: 05,
title: String::from("Anagantios"),
},
artist: vec![String::from("Eluveitie")],
quality: Quality {
format: Format::Flac,
bitrate: 923,
},
},
Track {
id: TrackId {
number: 06,
title: String::from("Bloodstained Ground"),
},
artist: vec![String::from("Eluveitie")],
quality: Quality {
format: Format::Flac,
bitrate: 1098,
},
},
Track {
id: TrackId {
number: 07,
title: String::from("The Somber Lay"),
},
artist: vec![String::from("Eluveitie")],
quality: Quality {
format: Format::Flac,
bitrate: 1068,
},
},
Track {
id: TrackId {
number: 08,
title: String::from("Slanias Song"),
},
artist: vec![String::from("Eluveitie")],
quality: Quality {
format: Format::Flac,
bitrate: 1098,
},
},
Track {
id: TrackId {
number: 09,
title: String::from("Giamonios"),
},
artist: vec![String::from("Eluveitie")],
quality: Quality {
format: Format::Flac,
bitrate: 825,
},
},
Track {
id: TrackId {
number: 10,
title: String::from("Tarvos"),
},
artist: vec![String::from("Eluveitie")],
quality: Quality {
format: Format::Flac,
bitrate: 1115,
},
},
Track {
id: TrackId {
number: 11,
title: String::from("Calling the Rain"),
},
artist: vec![String::from("Eluveitie")],
quality: Quality {
format: Format::Flac,
bitrate: 1096,
},
},
Track {
id: TrackId {
number: 12,
title: String::from("Elembivos"),
},
artist: vec![String::from("Eluveitie")],
quality: Quality {
format: Format::Flac,
bitrate: 1059,
},
},
],
},
],
},
Artist {
id: ArtistId {
name: String::from("Frontside"),
},
properties: ArtistProperties {
musicbrainz: Some(MusicBrainz::new(
"https://musicbrainz.org/artist/3a901353-fccd-4afd-ad01-9c03f451b490",
).unwrap()),
musicbutler: vec![
MusicButler::new("https://www.musicbutler.io/artist-page/826588800").unwrap(),
],
bandcamp: vec![],
qobuz: Some(Qobuz::new(
"https://www.qobuz.com/nl-nl/interpreter/frontside/download-streaming-albums",
).unwrap()),
},
albums: vec![Album {
id: AlbumId {
year: 2001,
title: String::from("…nasze jest królestwo, potęga i chwała na wieki…"),
},
tracks: vec![
Track {
id: TrackId {
number: 01,
title: String::from("Intro = Chaos"),
},
artist: vec![String::from("Frontside")],
quality: Quality {
format: Format::Flac,
bitrate: 1024,
},
},
Track {
id: TrackId {
number: 02,
title: String::from("Modlitwa"),
},
artist: vec![String::from("Frontside")],
quality: Quality {
format: Format::Flac,
bitrate: 1073,
},
},
Track {
id: TrackId {
number: 03,
title: String::from("Długa droga z piekła"),
},
artist: vec![String::from("Frontside")],
quality: Quality {
format: Format::Flac,
bitrate: 1058,
},
},
Track {
id: TrackId {
number: 04,
title: String::from("Synowie ognia"),
},
artist: vec![String::from("Frontside")],
quality: Quality {
format: Format::Flac,
bitrate: 1066,
},
},
Track {
id: TrackId {
number: 05,
title: String::from("1902"),
},
artist: vec![String::from("Frontside")],
quality: Quality {
format: Format::Flac,
bitrate: 1074,
},
},
Track {
id: TrackId {
number: 06,
title: String::from("Krew za krew"),
},
artist: vec![String::from("Frontside")],
quality: Quality {
format: Format::Flac,
bitrate: 1080,
},
},
Track {
id: TrackId {
number: 07,
title: String::from("Kulminacja"),
},
artist: vec![String::from("Frontside")],
quality: Quality {
format: Format::Flac,
bitrate: 992,
},
},
Track {
id: TrackId {
number: 08,
title: String::from("Judasz"),
},
artist: vec![String::from("Frontside")],
quality: Quality {
format: Format::Flac,
bitrate: 1018,
},
},
Track {
id: TrackId {
number: 09,
title: String::from("Więzy"),
},
artist: vec![String::from("Frontside")],
quality: Quality {
format: Format::Flac,
bitrate: 1077,
},
},
Track {
id: TrackId {
number: 10,
title: String::from("Zagubione dusze"),
},
artist: vec![String::from("Frontside")],
quality: Quality {
format: Format::Flac,
bitrate: 1033,
},
},
Track {
id: TrackId {
number: 11,
title: String::from("Linia życia"),
},
artist: vec![String::from("Frontside")],
quality: Quality {
format: Format::Flac,
bitrate: 987,
},
},
],
}],
},
Artist {
id: ArtistId {
name: String::from("Heavens Basement"),
},
properties: ArtistProperties {
musicbrainz: Some(MusicBrainz::new(
"https://musicbrainz.org/artist/c2c4d56a-d599-4a18-bd2f-ae644e2198cc",
).unwrap()),
musicbutler: vec![
MusicButler::new("https://www.musicbutler.io/artist-page/291158685").unwrap(),
],
bandcamp: vec![],
qobuz: Some(Qobuz::new(
"https://www.qobuz.com/nl-nl/interpreter/heaven-s-basement/download-streaming-albums",
).unwrap()),
},
albums: vec![Album {
id: AlbumId {
year: 2011,
title: String::from("Unbreakable"),
},
tracks: vec![
Track {
id: TrackId {
number: 01,
title: String::from("Unbreakable"),
},
artist: vec![String::from("Heavens Basement")],
quality: Quality {
format: Format::Mp3,
bitrate: 208,
},
},
Track {
id: TrackId {
number: 02,
title: String::from("Guilt Trips and Sins"),
},
artist: vec![String::from("Heavens Basement")],
quality: Quality {
format: Format::Mp3,
bitrate: 205,
},
},
Track {
id: TrackId {
number: 03,
title: String::from("The Long Goodbye"),
},
artist: vec![String::from("Heavens Basement")],
quality: Quality {
format: Format::Mp3,
bitrate: 227,
},
},
Track {
id: TrackId {
number: 04,
title: String::from("Close Encounters"),
},
artist: vec![String::from("Heavens Basement")],
quality: Quality {
format: Format::Mp3,
bitrate: 213,
},
},
Track {
id: TrackId {
number: 05,
title: String::from("Paranoia"),
},
artist: vec![String::from("Heavens Basement")],
quality: Quality {
format: Format::Mp3,
bitrate: 218,
},
},
Track {
id: TrackId {
number: 06,
title: String::from("Let Me Out of Here"),
},
artist: vec![String::from("Heavens Basement")],
quality: Quality {
format: Format::Mp3,
bitrate: 207,
},
},
Track {
id: TrackId {
number: 07,
title: String::from("Leeches"),
},
artist: vec![String::from("Heavens Basement")],
quality: Quality {
format: Format::Mp3,
bitrate: 225,
},
},
],
}],
},
Artist {
id: ArtistId {
name: String::from("Metallica"),
},
properties: ArtistProperties {
musicbrainz: Some(MusicBrainz::new(
"https://musicbrainz.org/artist/65f4f0c5-ef9e-490c-aee3-909e7ae6b2ab",
).unwrap()),
musicbutler: vec![
MusicButler::new("https://www.musicbutler.io/artist-page/3996865").unwrap(),
],
bandcamp: vec![],
qobuz: Some(Qobuz::new(
"https://www.qobuz.com/nl-nl/interpreter/metallica/download-streaming-albums",
).unwrap()),
},
albums: vec![
Album {
id: AlbumId {
year: 1984,
title: String::from("Ride the Lightning"),
},
tracks: vec![
Track {
id: TrackId {
number: 01,
title: String::from("Fight Fire with Fire"),
},
artist: vec![String::from("Metallica")],
quality: Quality {
format: Format::Flac,
bitrate: 954,
},
},
Track {
id: TrackId {
number: 02,
title: String::from("Ride the Lightning"),
},
artist: vec![String::from("Metallica")],
quality: Quality {
format: Format::Flac,
bitrate: 951,
},
},
Track {
id: TrackId {
number: 03,
title: String::from("For Whom the Bell Tolls"),
},
artist: vec![String::from("Metallica")],
quality: Quality {
format: Format::Flac,
bitrate: 889,
},
},
Track {
id: TrackId {
number: 04,
title: String::from("Fade to Black"),
},
artist: vec![String::from("Metallica")],
quality: Quality {
format: Format::Flac,
bitrate: 939,
},
},
Track {
id: TrackId {
number: 05,
title: String::from("Trapped under Ice"),
},
artist: vec![String::from("Metallica")],
quality: Quality {
format: Format::Flac,
bitrate: 955,
},
},
Track {
id: TrackId {
number: 06,
title: String::from("Escape"),
},
artist: vec![String::from("Metallica")],
quality: Quality {
format: Format::Flac,
bitrate: 941,
},
},
Track {
id: TrackId {
number: 07,
title: String::from("Creeping Death"),
},
artist: vec![String::from("Metallica")],
quality: Quality {
format: Format::Flac,
bitrate: 958,
},
},
Track {
id: TrackId {
number: 08,
title: String::from("The Call of Ktulu"),
},
artist: vec![String::from("Metallica")],
quality: Quality {
format: Format::Flac,
bitrate: 888,
},
},
],
},
Album {
id: AlbumId {
year: 1999,
title: String::from("S&M"),
},
tracks: vec![
Track {
id: TrackId {
number: 01,
title: String::from("The Ecstasy of Gold"),
},
artist: vec![String::from("Metallica")],
quality: Quality {
format: Format::Flac,
bitrate: 875,
},
},
Track {
id: TrackId {
number: 02,
title: String::from("The Call of Ktulu"),
},
artist: vec![String::from("Metallica")],
quality: Quality {
format: Format::Flac,
bitrate: 1030,
},
},
Track {
id: TrackId {
number: 03,
title: String::from("Master of Puppets"),
},
artist: vec![String::from("Metallica")],
quality: Quality {
format: Format::Flac,
bitrate: 1082,
},
},
Track {
id: TrackId {
number: 04,
title: String::from("Of Wolf and Man"),
},
artist: vec![String::from("Metallica")],
quality: Quality {
format: Format::Flac,
bitrate: 1115,
},
},
Track {
id: TrackId {
number: 05,
title: String::from("The Thing That Should Not Be"),
},
artist: vec![String::from("Metallica")],
quality: Quality {
format: Format::Flac,
bitrate: 1029,
},
},
Track {
id: TrackId {
number: 06,
title: String::from("Fuel"),
},
artist: vec![String::from("Metallica")],
quality: Quality {
format: Format::Flac,
bitrate: 1057,
},
},
Track {
id: TrackId {
number: 07,
title: String::from("The Memory Remains"),
},
artist: vec![String::from("Metallica")],
quality: Quality {
format: Format::Flac,
bitrate: 1080,
},
},
Track {
id: TrackId {
number: 08,
title: String::from("No Leaf Clover"),
},
artist: vec![String::from("Metallica")],
quality: Quality {
format: Format::Flac,
bitrate: 1004,
},
},
Track {
id: TrackId {
number: 09,
title: String::from("Hero of the Day"),
},
artist: vec![String::from("Metallica")],
quality: Quality {
format: Format::Flac,
bitrate: 962,
},
},
Track {
id: TrackId {
number: 10,
title: String::from("Devils Dance"),
},
artist: vec![String::from("Metallica")],
quality: Quality {
format: Format::Flac,
bitrate: 1076,
},
},
Track {
id: TrackId {
number: 11,
title: String::from("Bleeding Me"),
},
artist: vec![String::from("Metallica")],
quality: Quality {
format: Format::Flac,
bitrate: 993,
},
},
Track {
id: TrackId {
number: 12,
title: String::from("Nothing Else Matters"),
},
artist: vec![String::from("Metallica")],
quality: Quality {
format: Format::Flac,
bitrate: 875,
},
},
Track {
id: TrackId {
number: 13,
title: String::from("Until It Sleeps"),
},
artist: vec![String::from("Metallica")],
quality: Quality {
format: Format::Flac,
bitrate: 1038,
},
},
Track {
id: TrackId {
number: 14,
title: String::from("For Whom the Bell Tolls"),
},
artist: vec![String::from("Metallica")],
quality: Quality {
format: Format::Flac,
bitrate: 1072,
},
},
Track {
id: TrackId {
number: 15,
title: String::from("Human"),
},
artist: vec![String::from("Metallica")],
quality: Quality {
format: Format::Flac,
bitrate: 1029,
},
},
Track {
id: TrackId {
number: 16,
title: String::from("Wherever I May Roam"),
},
artist: vec![String::from("Metallica")],
quality: Quality {
format: Format::Flac,
bitrate: 1035,
},
},
Track {
id: TrackId {
number: 17,
title: String::from("Outlaw Torn"),
},
artist: vec![String::from("Metallica")],
quality: Quality {
format: Format::Flac,
bitrate: 1042,
},
},
Track {
id: TrackId {
number: 18,
title: String::from("Sad but True"),
},
artist: vec![String::from("Metallica")],
quality: Quality {
format: Format::Flac,
bitrate: 1082,
},
},
Track {
id: TrackId {
number: 19,
title: String::from("One"),
},
artist: vec![String::from("Metallica")],
quality: Quality {
format: Format::Flac,
bitrate: 1017,
},
},
Track {
id: TrackId {
number: 20,
title: String::from("Enter Sandman"),
},
artist: vec![String::from("Metallica")],
quality: Quality {
format: Format::Flac,
bitrate: 993,
},
},
Track {
id: TrackId {
number: 21,
title: String::from("Battery"),
},
artist: vec![String::from("Metallica")],
quality: Quality {
format: Format::Flac,
bitrate: 967,
},
},
],
},
],
},
Artist {
id: ArtistId {
name: String::from("Аркона"),
},
properties: ArtistProperties {
musicbrainz: Some(MusicBrainz::new(
"https://musicbrainz.org/artist/baad262d-55ef-427a-83c7-f7530964f212",
).unwrap()),
musicbutler: vec![
MusicButler::new("https://www.musicbutler.io/artist-page/283448581").unwrap(),
],
bandcamp: vec![
Bandcamp::new("https://arkonamoscow.bandcamp.com/").unwrap(),
],
qobuz: Some(Qobuz::new(
"https://www.qobuz.com/nl-nl/interpreter/arkona/download-streaming-albums",
).unwrap()),
},
albums: vec![Album {
id: AlbumId {
year: 2011,
title: String::from("Slovo"),
},
tracks: vec![
Track {
id: TrackId {
number: 01,
title: String::from("Az"),
},
artist: vec![String::from("Аркона")],
quality: Quality {
format: Format::Flac,
bitrate: 992,
},
},
Track {
id: TrackId {
number: 02,
title: String::from("Arkaim"),
},
artist: vec![String::from("Аркона")],
quality: Quality {
format: Format::Flac,
bitrate: 1061,
},
},
Track {
id: TrackId {
number: 03,
title: String::from("Bolno mne"),
},
artist: vec![String::from("Аркона")],
quality: Quality {
format: Format::Flac,
bitrate: 1004,
},
},
Track {
id: TrackId {
number: 04,
title: String::from("Leshiy"),
},
artist: vec![String::from("Аркона")],
quality: Quality {
format: Format::Flac,
bitrate: 1077,
},
},
Track {
id: TrackId {
number: 05,
title: String::from("Zakliatie"),
},
artist: vec![String::from("Аркона")],
quality: Quality {
format: Format::Flac,
bitrate: 1041,
},
},
Track {
id: TrackId {
number: 06,
title: String::from("Predok"),
},
artist: vec![String::from("Аркона")],
quality: Quality {
format: Format::Flac,
bitrate: 756,
},
},
Track {
id: TrackId {
number: 07,
title: String::from("Nikogda"),
},
artist: vec![String::from("Аркона")],
quality: Quality {
format: Format::Flac,
bitrate: 1059,
},
},
Track {
id: TrackId {
number: 08,
title: String::from("Tam za tumanami"),
},
artist: vec![String::from("Аркона")],
quality: Quality {
format: Format::Flac,
bitrate: 1023,
},
},
Track {
id: TrackId {
number: 09,
title: String::from("Potomok"),
},
artist: vec![String::from("Аркона")],
quality: Quality {
format: Format::Flac,
bitrate: 838,
},
},
Track {
id: TrackId {
number: 10,
title: String::from("Slovo"),
},
artist: vec![String::from("Аркона")],
quality: Quality {
format: Format::Flac,
bitrate: 1028,
},
},
Track {
id: TrackId {
number: 11,
title: String::from("Odna"),
},
artist: vec![String::from("Аркона")],
quality: Quality {
format: Format::Flac,
bitrate: 991,
},
},
Track {
id: TrackId {
number: 12,
title: String::from("Vo moiom sadochke…"),
},
artist: vec![String::from("Аркона")],
quality: Quality {
format: Format::Flac,
bitrate: 919,
},
},
Track {
id: TrackId {
number: 13,
title: String::from("Stenka na stenku"),
},
artist: vec![String::from("Аркона")],
quality: Quality {
format: Format::Flac,
bitrate: 1039,
},
},
Track {
id: TrackId {
number: 14,
title: String::from("Zimushka"),
},
artist: vec![String::from("Аркона")],
quality: Quality {
format: Format::Flac,
bitrate: 974,
},
},
],
}],
},
]
});