Don't use macros when not needed
This commit is contained in:
parent
9cf8e1375c
commit
d59bca8194
@ -1,144 +1,136 @@
|
|||||||
use once_cell::sync::Lazy;
|
pub static DATABASE_JSON: &str = "[\
|
||||||
|
{\
|
||||||
macro_rules! database_json {
|
\"id\":{\"name\":\"album_artist a\"},\
|
||||||
() => {
|
\"sort\":null,\
|
||||||
"[\
|
\"properties\":{\
|
||||||
{\
|
\"musicbrainz\":\"https://musicbrainz.org/artist/00000000-0000-0000-0000-000000000000\",\
|
||||||
\"id\":{\"name\":\"album_artist a\"},\
|
\"musicbutler\":[\"https://www.musicbutler.io/artist-page/000000000\"],\
|
||||||
\"sort\":null,\
|
\"bandcamp\":[],\
|
||||||
\"properties\":{\
|
\"qobuz\":\"https://www.qobuz.com/nl-nl/interpreter/artist-a/download-streaming-albums\"\
|
||||||
\"musicbrainz\":\"https://musicbrainz.org/artist/00000000-0000-0000-0000-000000000000\",\
|
},\
|
||||||
\"musicbutler\":[\"https://www.musicbutler.io/artist-page/000000000\"],\
|
\"albums\":[\
|
||||||
\"bandcamp\":[],\
|
{\
|
||||||
\"qobuz\":\"https://www.qobuz.com/nl-nl/interpreter/artist-a/download-streaming-albums\"\
|
\"id\":{\"year\":1998,\"title\":\"album_title a.a\"},\
|
||||||
},\
|
\"tracks\":[\
|
||||||
\"albums\":[\
|
{\
|
||||||
{\
|
\"id\":{\"number\":1,\"title\":\"track a.a.1\"},\
|
||||||
\"id\":{\"year\":1998,\"title\":\"album_title a.a\"},\
|
\"artist\":[\"artist a.a.1\"],\
|
||||||
\"tracks\":[\
|
\"quality\":{\"format\":\"Flac\",\"bitrate\":992}\
|
||||||
{\
|
},\
|
||||||
\"id\":{\"number\":1,\"title\":\"track a.a.1\"},\
|
{\
|
||||||
\"artist\":[\"artist a.a.1\"],\
|
\"id\":{\"number\":2,\"title\":\"track a.a.2\"},\
|
||||||
\"quality\":{\"format\":\"Flac\",\"bitrate\":992}\
|
\"artist\":[\"artist a.a.2.1\",\"artist a.a.2.2\"],\
|
||||||
},\
|
\"quality\":{\"format\":\"Mp3\",\"bitrate\":320}\
|
||||||
{\
|
},\
|
||||||
\"id\":{\"number\":2,\"title\":\"track a.a.2\"},\
|
{\
|
||||||
\"artist\":[\"artist a.a.2.1\",\"artist a.a.2.2\"],\
|
\"id\":{\"number\":3,\"title\":\"track a.a.3\"},\
|
||||||
\"quality\":{\"format\":\"Mp3\",\"bitrate\":320}\
|
\"artist\":[\"artist a.a.3\"],\
|
||||||
},\
|
\"quality\":{\"format\":\"Flac\",\"bitrate\":1061}\
|
||||||
{\
|
}\
|
||||||
\"id\":{\"number\":3,\"title\":\"track a.a.3\"},\
|
]\
|
||||||
\"artist\":[\"artist a.a.3\"],\
|
},\
|
||||||
\"quality\":{\"format\":\"Flac\",\"bitrate\":1061}\
|
{\
|
||||||
}\
|
\"id\":{\"year\":2015,\"title\":\"album_title a.b\"},\
|
||||||
]\
|
\"tracks\":[\
|
||||||
},\
|
{\
|
||||||
{\
|
\"id\":{\"number\":1,\"title\":\"track a.b.1\"},\
|
||||||
\"id\":{\"year\":2015,\"title\":\"album_title a.b\"},\
|
\"artist\":[\"artist a.b.1\"],\
|
||||||
\"tracks\":[\
|
\"quality\":{\"format\":\"Flac\",\"bitrate\":1004}\
|
||||||
{\
|
},\
|
||||||
\"id\":{\"number\":1,\"title\":\"track a.b.1\"},\
|
{\
|
||||||
\"artist\":[\"artist a.b.1\"],\
|
\"id\":{\"number\":2,\"title\":\"track a.b.2\"},\
|
||||||
\"quality\":{\"format\":\"Flac\",\"bitrate\":1004}\
|
\"artist\":[\"artist a.b.2\"],\
|
||||||
},\
|
\"quality\":{\"format\":\"Flac\",\"bitrate\":1077}\
|
||||||
{\
|
}\
|
||||||
\"id\":{\"number\":2,\"title\":\"track a.b.2\"},\
|
]\
|
||||||
\"artist\":[\"artist a.b.2\"],\
|
}\
|
||||||
\"quality\":{\"format\":\"Flac\",\"bitrate\":1077}\
|
]\
|
||||||
}\
|
},\
|
||||||
]\
|
{\
|
||||||
}\
|
\"id\":{\"name\":\"album_artist b\"},\
|
||||||
]\
|
\"sort\":null,\
|
||||||
},\
|
\"properties\":{\
|
||||||
{\
|
\"musicbrainz\":\"https://musicbrainz.org/artist/11111111-1111-1111-1111-111111111111\",\
|
||||||
\"id\":{\"name\":\"album_artist b\"},\
|
\"musicbutler\":[\
|
||||||
\"sort\":null,\
|
\"https://www.musicbutler.io/artist-page/111111111\",\
|
||||||
\"properties\":{\
|
\"https://www.musicbutler.io/artist-page/111111112\"\
|
||||||
\"musicbrainz\":\"https://musicbrainz.org/artist/11111111-1111-1111-1111-111111111111\",\
|
],\
|
||||||
\"musicbutler\":[\
|
\"bandcamp\":[\"https://artist-b.bandcamp.com/\"],\
|
||||||
\"https://www.musicbutler.io/artist-page/111111111\",\
|
\"qobuz\":\"https://www.qobuz.com/nl-nl/interpreter/artist-b/download-streaming-albums\"\
|
||||||
\"https://www.musicbutler.io/artist-page/111111112\"\
|
},\
|
||||||
],\
|
\"albums\":[\
|
||||||
\"bandcamp\":[\"https://artist-b.bandcamp.com/\"],\
|
{\
|
||||||
\"qobuz\":\"https://www.qobuz.com/nl-nl/interpreter/artist-b/download-streaming-albums\"\
|
\"id\":{\"year\":2003,\"title\":\"album_title b.a\"},\
|
||||||
},\
|
\"tracks\":[\
|
||||||
\"albums\":[\
|
{\
|
||||||
{\
|
\"id\":{\"number\":1,\"title\":\"track b.a.1\"},\
|
||||||
\"id\":{\"year\":2003,\"title\":\"album_title b.a\"},\
|
\"artist\":[\"artist b.a.1\"],\
|
||||||
\"tracks\":[\
|
\"quality\":{\"format\":\"Mp3\",\"bitrate\":190}\
|
||||||
{\
|
},\
|
||||||
\"id\":{\"number\":1,\"title\":\"track b.a.1\"},\
|
{\
|
||||||
\"artist\":[\"artist b.a.1\"],\
|
\"id\":{\"number\":2,\"title\":\"track b.a.2\"},\
|
||||||
\"quality\":{\"format\":\"Mp3\",\"bitrate\":190}\
|
\"artist\":[\"artist b.a.2.1\",\"artist b.a.2.2\"],\
|
||||||
},\
|
\"quality\":{\"format\":\"Mp3\",\"bitrate\":120}\
|
||||||
{\
|
}\
|
||||||
\"id\":{\"number\":2,\"title\":\"track b.a.2\"},\
|
]\
|
||||||
\"artist\":[\"artist b.a.2.1\",\"artist b.a.2.2\"],\
|
},\
|
||||||
\"quality\":{\"format\":\"Mp3\",\"bitrate\":120}\
|
{\
|
||||||
}\
|
\"id\":{\"year\":2008,\"title\":\"album_title b.b\"},\
|
||||||
]\
|
\"tracks\":[\
|
||||||
},\
|
{\
|
||||||
{\
|
\"id\":{\"number\":1,\"title\":\"track b.b.1\"},\
|
||||||
\"id\":{\"year\":2008,\"title\":\"album_title b.b\"},\
|
\"artist\":[\"artist b.b.1\"],\
|
||||||
\"tracks\":[\
|
\"quality\":{\"format\":\"Flac\",\"bitrate\":1077}\
|
||||||
{\
|
},\
|
||||||
\"id\":{\"number\":1,\"title\":\"track b.b.1\"},\
|
{\
|
||||||
\"artist\":[\"artist b.b.1\"],\
|
\"id\":{\"number\":2,\"title\":\"track b.b.2\"},\
|
||||||
\"quality\":{\"format\":\"Flac\",\"bitrate\":1077}\
|
\"artist\":[\"artist b.b.2.1\",\"artist b.b.2.2\"],\
|
||||||
},\
|
\"quality\":{\"format\":\"Mp3\",\"bitrate\":320}\
|
||||||
{\
|
}\
|
||||||
\"id\":{\"number\":2,\"title\":\"track b.b.2\"},\
|
]\
|
||||||
\"artist\":[\"artist b.b.2.1\",\"artist b.b.2.2\"],\
|
}\
|
||||||
\"quality\":{\"format\":\"Mp3\",\"bitrate\":320}\
|
]\
|
||||||
}\
|
},\
|
||||||
]\
|
{\
|
||||||
}\
|
\"id\":{\"name\":\"album_artist c\"},\
|
||||||
]\
|
\"sort\":null,\
|
||||||
},\
|
\"properties\":{\
|
||||||
{\
|
\"musicbrainz\":\"https://musicbrainz.org/artist/11111111-1111-1111-1111-111111111111\",\
|
||||||
\"id\":{\"name\":\"album_artist c\"},\
|
\"musicbutler\":[],\
|
||||||
\"sort\":null,\
|
\"bandcamp\":[],\
|
||||||
\"properties\":{\
|
\"qobuz\":null\
|
||||||
\"musicbrainz\":\"https://musicbrainz.org/artist/11111111-1111-1111-1111-111111111111\",\
|
},\
|
||||||
\"musicbutler\":[],\
|
\"albums\":[\
|
||||||
\"bandcamp\":[],\
|
{\
|
||||||
\"qobuz\":null\
|
\"id\":{\"year\":1985,\"title\":\"album_title c.a\"},\
|
||||||
},\
|
\"tracks\":[\
|
||||||
\"albums\":[\
|
{\
|
||||||
{\
|
\"id\":{\"number\":1,\"title\":\"track c.a.1\"},\
|
||||||
\"id\":{\"year\":1985,\"title\":\"album_title c.a\"},\
|
\"artist\":[\"artist c.a.1\"],\
|
||||||
\"tracks\":[\
|
\"quality\":{\"format\":\"Mp3\",\"bitrate\":320}\
|
||||||
{\
|
},\
|
||||||
\"id\":{\"number\":1,\"title\":\"track c.a.1\"},\
|
{\
|
||||||
\"artist\":[\"artist c.a.1\"],\
|
\"id\":{\"number\":2,\"title\":\"track c.a.2\"},\
|
||||||
\"quality\":{\"format\":\"Mp3\",\"bitrate\":320}\
|
\"artist\":[\"artist c.a.2.1\",\"artist c.a.2.2\"],\
|
||||||
},\
|
\"quality\":{\"format\":\"Mp3\",\"bitrate\":120}\
|
||||||
{\
|
}\
|
||||||
\"id\":{\"number\":2,\"title\":\"track c.a.2\"},\
|
]\
|
||||||
\"artist\":[\"artist c.a.2.1\",\"artist c.a.2.2\"],\
|
},\
|
||||||
\"quality\":{\"format\":\"Mp3\",\"bitrate\":120}\
|
{\
|
||||||
}\
|
\"id\":{\"year\":2018,\"title\":\"album_title c.b\"},\
|
||||||
]\
|
\"tracks\":[\
|
||||||
},\
|
{\
|
||||||
{\
|
\"id\":{\"number\":1,\"title\":\"track c.b.1\"},\
|
||||||
\"id\":{\"year\":2018,\"title\":\"album_title c.b\"},\
|
\"artist\":[\"artist c.b.1\"],\
|
||||||
\"tracks\":[\
|
\"quality\":{\"format\":\"Flac\",\"bitrate\":1041}\
|
||||||
{\
|
},\
|
||||||
\"id\":{\"number\":1,\"title\":\"track c.b.1\"},\
|
{\
|
||||||
\"artist\":[\"artist c.b.1\"],\
|
\"id\":{\"number\":2,\"title\":\"track c.b.2\"},\
|
||||||
\"quality\":{\"format\":\"Flac\",\"bitrate\":1041}\
|
\"artist\":[\"artist c.b.2.1\",\"artist c.b.2.2\"],\
|
||||||
},\
|
\"quality\":{\"format\":\"Flac\",\"bitrate\":756}\
|
||||||
{\
|
}\
|
||||||
\"id\":{\"number\":2,\"title\":\"track c.b.2\"},\
|
]\
|
||||||
\"artist\":[\"artist c.b.2.1\",\"artist c.b.2.2\"],\
|
}\
|
||||||
\"quality\":{\"format\":\"Flac\",\"bitrate\":756}\
|
]\
|
||||||
}\
|
}\
|
||||||
]\
|
]";
|
||||||
}\
|
|
||||||
]\
|
|
||||||
}\
|
|
||||||
]"
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
pub static DATABASE_JSON: Lazy<&str> = Lazy::new(|| database_json!());
|
|
||||||
|
@ -1,23 +1,19 @@
|
|||||||
use once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
macro_rules! library_beets {
|
pub static LIBRARY_BEETS: Lazy<Vec<String>> = Lazy::new(|| -> Vec<String> {
|
||||||
() => {
|
vec![
|
||||||
vec![
|
String::from("album_artist a -*^- -*^- 1998 -*^- album_title a.a -*^- 1 -*^- track a.a.1 -*^- artist a.a.1 -*^- FLAC -*^- 992"),
|
||||||
String::from("album_artist a -*^- -*^- 1998 -*^- album_title a.a -*^- 1 -*^- track a.a.1 -*^- artist a.a.1 -*^- FLAC -*^- 992"),
|
String::from("album_artist a -*^- -*^- 1998 -*^- album_title a.a -*^- 2 -*^- track a.a.2 -*^- artist a.a.2.1; artist a.a.2.2 -*^- MP3 -*^- 320"),
|
||||||
String::from("album_artist a -*^- -*^- 1998 -*^- album_title a.a -*^- 2 -*^- track a.a.2 -*^- artist a.a.2.1; artist a.a.2.2 -*^- MP3 -*^- 320"),
|
String::from("album_artist a -*^- -*^- 1998 -*^- album_title a.a -*^- 3 -*^- track a.a.3 -*^- artist a.a.3 -*^- FLAC -*^- 1061"),
|
||||||
String::from("album_artist a -*^- -*^- 1998 -*^- album_title a.a -*^- 3 -*^- track a.a.3 -*^- artist a.a.3 -*^- FLAC -*^- 1061"),
|
String::from("album_artist a -*^- -*^- 2015 -*^- album_title a.b -*^- 1 -*^- track a.b.1 -*^- artist a.b.1 -*^- FLAC -*^- 1004"),
|
||||||
String::from("album_artist a -*^- -*^- 2015 -*^- album_title a.b -*^- 1 -*^- track a.b.1 -*^- artist a.b.1 -*^- FLAC -*^- 1004"),
|
String::from("album_artist a -*^- -*^- 2015 -*^- album_title a.b -*^- 2 -*^- track a.b.2 -*^- artist a.b.2 -*^- FLAC -*^- 1077"),
|
||||||
String::from("album_artist a -*^- -*^- 2015 -*^- album_title a.b -*^- 2 -*^- track a.b.2 -*^- artist a.b.2 -*^- FLAC -*^- 1077"),
|
String::from("album_artist b -*^- -*^- 2003 -*^- album_title b.a -*^- 1 -*^- track b.a.1 -*^- artist b.a.1 -*^- MP3 -*^- 190"),
|
||||||
String::from("album_artist b -*^- -*^- 2003 -*^- album_title b.a -*^- 1 -*^- track b.a.1 -*^- artist b.a.1 -*^- MP3 -*^- 190"),
|
String::from("album_artist b -*^- -*^- 2003 -*^- album_title b.a -*^- 2 -*^- track b.a.2 -*^- artist b.a.2.1; artist b.a.2.2 -*^- MP3 -*^- 120"),
|
||||||
String::from("album_artist b -*^- -*^- 2003 -*^- album_title b.a -*^- 2 -*^- track b.a.2 -*^- artist b.a.2.1; artist b.a.2.2 -*^- MP3 -*^- 120"),
|
String::from("album_artist b -*^- -*^- 2008 -*^- album_title b.b -*^- 1 -*^- track b.b.1 -*^- artist b.b.1 -*^- FLAC -*^- 1077"),
|
||||||
String::from("album_artist b -*^- -*^- 2008 -*^- album_title b.b -*^- 1 -*^- track b.b.1 -*^- artist b.b.1 -*^- FLAC -*^- 1077"),
|
String::from("album_artist b -*^- -*^- 2008 -*^- album_title b.b -*^- 2 -*^- track b.b.2 -*^- artist b.b.2.1; artist b.b.2.2 -*^- MP3 -*^- 320"),
|
||||||
String::from("album_artist b -*^- -*^- 2008 -*^- album_title b.b -*^- 2 -*^- track b.b.2 -*^- artist b.b.2.1; artist b.b.2.2 -*^- MP3 -*^- 320"),
|
String::from("album_artist c -*^- -*^- 1985 -*^- album_title c.a -*^- 1 -*^- track c.a.1 -*^- artist c.a.1 -*^- MP3 -*^- 320"),
|
||||||
String::from("album_artist c -*^- -*^- 1985 -*^- album_title c.a -*^- 1 -*^- track c.a.1 -*^- artist c.a.1 -*^- MP3 -*^- 320"),
|
String::from("album_artist c -*^- -*^- 1985 -*^- album_title c.a -*^- 2 -*^- track c.a.2 -*^- artist c.a.2.1; artist c.a.2.2 -*^- MP3 -*^- 120"),
|
||||||
String::from("album_artist c -*^- -*^- 1985 -*^- album_title c.a -*^- 2 -*^- track c.a.2 -*^- artist c.a.2.1; artist c.a.2.2 -*^- MP3 -*^- 120"),
|
String::from("album_artist c -*^- -*^- 2018 -*^- album_title c.b -*^- 1 -*^- track c.b.1 -*^- artist c.b.1 -*^- FLAC -*^- 1041"),
|
||||||
String::from("album_artist c -*^- -*^- 2018 -*^- album_title c.b -*^- 1 -*^- track c.b.1 -*^- artist c.b.1 -*^- FLAC -*^- 1041"),
|
String::from("album_artist c -*^- -*^- 2018 -*^- album_title c.b -*^- 2 -*^- track c.b.2 -*^- artist c.b.2.1; artist c.b.2.2 -*^- FLAC -*^- 756")
|
||||||
String::from("album_artist c -*^- -*^- 2018 -*^- album_title c.b -*^- 2 -*^- track c.b.2 -*^- artist c.b.2.1; artist c.b.2.2 -*^- FLAC -*^- 756")
|
]
|
||||||
]
|
});
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
pub static LIBRARY_BEETS: Lazy<Vec<String>> = Lazy::new(|| library_beets!());
|
|
||||||
|
@ -1,171 +1,166 @@
|
|||||||
use once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use crate::library::Item;
|
use crate::{library::Item, Format};
|
||||||
use crate::Format;
|
|
||||||
|
|
||||||
macro_rules! library_items {
|
pub static LIBRARY_ITEMS: Lazy<Vec<Item>> = Lazy::new(|| -> Vec<Item> {
|
||||||
() => {
|
vec![
|
||||||
vec![
|
Item {
|
||||||
Item {
|
album_artist: String::from("album_artist a"),
|
||||||
album_artist: String::from("album_artist a"),
|
album_artist_sort: None,
|
||||||
album_artist_sort: None,
|
album_year: 1998,
|
||||||
album_year: 1998,
|
album_title: String::from("album_title a.a"),
|
||||||
album_title: String::from("album_title a.a"),
|
track_number: 1,
|
||||||
track_number: 1,
|
track_title: String::from("track a.a.1"),
|
||||||
track_title: String::from("track a.a.1"),
|
track_artist: vec![String::from("artist a.a.1")],
|
||||||
track_artist: vec![String::from("artist a.a.1")],
|
track_format: Format::Flac,
|
||||||
track_format: Format::Flac,
|
track_bitrate: 992,
|
||||||
track_bitrate: 992,
|
},
|
||||||
},
|
Item {
|
||||||
Item {
|
album_artist: String::from("album_artist a"),
|
||||||
album_artist: String::from("album_artist a"),
|
album_artist_sort: None,
|
||||||
album_artist_sort: None,
|
album_year: 1998,
|
||||||
album_year: 1998,
|
album_title: String::from("album_title a.a"),
|
||||||
album_title: String::from("album_title a.a"),
|
track_number: 2,
|
||||||
track_number: 2,
|
track_title: String::from("track a.a.2"),
|
||||||
track_title: String::from("track a.a.2"),
|
track_artist: vec![
|
||||||
track_artist: vec![
|
String::from("artist a.a.2.1"),
|
||||||
String::from("artist a.a.2.1"),
|
String::from("artist a.a.2.2"),
|
||||||
String::from("artist a.a.2.2"),
|
],
|
||||||
],
|
track_format: Format::Mp3,
|
||||||
track_format: Format::Mp3,
|
track_bitrate: 320,
|
||||||
track_bitrate: 320,
|
},
|
||||||
},
|
Item {
|
||||||
Item {
|
album_artist: String::from("album_artist a"),
|
||||||
album_artist: String::from("album_artist a"),
|
album_artist_sort: None,
|
||||||
album_artist_sort: None,
|
album_year: 1998,
|
||||||
album_year: 1998,
|
album_title: String::from("album_title a.a"),
|
||||||
album_title: String::from("album_title a.a"),
|
track_number: 3,
|
||||||
track_number: 3,
|
track_title: String::from("track a.a.3"),
|
||||||
track_title: String::from("track a.a.3"),
|
track_artist: vec![String::from("artist a.a.3")],
|
||||||
track_artist: vec![String::from("artist a.a.3")],
|
track_format: Format::Flac,
|
||||||
track_format: Format::Flac,
|
track_bitrate: 1061,
|
||||||
track_bitrate: 1061,
|
},
|
||||||
},
|
Item {
|
||||||
Item {
|
album_artist: String::from("album_artist a"),
|
||||||
album_artist: String::from("album_artist a"),
|
album_artist_sort: None,
|
||||||
album_artist_sort: None,
|
album_year: 2015,
|
||||||
album_year: 2015,
|
album_title: String::from("album_title a.b"),
|
||||||
album_title: String::from("album_title a.b"),
|
track_number: 1,
|
||||||
track_number: 1,
|
track_title: String::from("track a.b.1"),
|
||||||
track_title: String::from("track a.b.1"),
|
track_artist: vec![String::from("artist a.b.1")],
|
||||||
track_artist: vec![String::from("artist a.b.1")],
|
track_format: Format::Flac,
|
||||||
track_format: Format::Flac,
|
track_bitrate: 1004,
|
||||||
track_bitrate: 1004,
|
},
|
||||||
},
|
Item {
|
||||||
Item {
|
album_artist: String::from("album_artist a"),
|
||||||
album_artist: String::from("album_artist a"),
|
album_artist_sort: None,
|
||||||
album_artist_sort: None,
|
album_year: 2015,
|
||||||
album_year: 2015,
|
album_title: String::from("album_title a.b"),
|
||||||
album_title: String::from("album_title a.b"),
|
track_number: 2,
|
||||||
track_number: 2,
|
track_title: String::from("track a.b.2"),
|
||||||
track_title: String::from("track a.b.2"),
|
track_artist: vec![String::from("artist a.b.2")],
|
||||||
track_artist: vec![String::from("artist a.b.2")],
|
track_format: Format::Flac,
|
||||||
track_format: Format::Flac,
|
track_bitrate: 1077,
|
||||||
track_bitrate: 1077,
|
},
|
||||||
},
|
Item {
|
||||||
Item {
|
album_artist: String::from("album_artist b"),
|
||||||
album_artist: String::from("album_artist b"),
|
album_artist_sort: None,
|
||||||
album_artist_sort: None,
|
album_year: 2003,
|
||||||
album_year: 2003,
|
album_title: String::from("album_title b.a"),
|
||||||
album_title: String::from("album_title b.a"),
|
track_number: 1,
|
||||||
track_number: 1,
|
track_title: String::from("track b.a.1"),
|
||||||
track_title: String::from("track b.a.1"),
|
track_artist: vec![String::from("artist b.a.1")],
|
||||||
track_artist: vec![String::from("artist b.a.1")],
|
track_format: Format::Mp3,
|
||||||
track_format: Format::Mp3,
|
track_bitrate: 190,
|
||||||
track_bitrate: 190,
|
},
|
||||||
},
|
Item {
|
||||||
Item {
|
album_artist: String::from("album_artist b"),
|
||||||
album_artist: String::from("album_artist b"),
|
album_artist_sort: None,
|
||||||
album_artist_sort: None,
|
album_year: 2003,
|
||||||
album_year: 2003,
|
album_title: String::from("album_title b.a"),
|
||||||
album_title: String::from("album_title b.a"),
|
track_number: 2,
|
||||||
track_number: 2,
|
track_title: String::from("track b.a.2"),
|
||||||
track_title: String::from("track b.a.2"),
|
track_artist: vec![
|
||||||
track_artist: vec![
|
String::from("artist b.a.2.1"),
|
||||||
String::from("artist b.a.2.1"),
|
String::from("artist b.a.2.2"),
|
||||||
String::from("artist b.a.2.2"),
|
],
|
||||||
],
|
track_format: Format::Mp3,
|
||||||
track_format: Format::Mp3,
|
track_bitrate: 120,
|
||||||
track_bitrate: 120,
|
},
|
||||||
},
|
Item {
|
||||||
Item {
|
album_artist: String::from("album_artist b"),
|
||||||
album_artist: String::from("album_artist b"),
|
album_artist_sort: None,
|
||||||
album_artist_sort: None,
|
album_year: 2008,
|
||||||
album_year: 2008,
|
album_title: String::from("album_title b.b"),
|
||||||
album_title: String::from("album_title b.b"),
|
track_number: 1,
|
||||||
track_number: 1,
|
track_title: String::from("track b.b.1"),
|
||||||
track_title: String::from("track b.b.1"),
|
track_artist: vec![String::from("artist b.b.1")],
|
||||||
track_artist: vec![String::from("artist b.b.1")],
|
track_format: Format::Flac,
|
||||||
track_format: Format::Flac,
|
track_bitrate: 1077,
|
||||||
track_bitrate: 1077,
|
},
|
||||||
},
|
Item {
|
||||||
Item {
|
album_artist: String::from("album_artist b"),
|
||||||
album_artist: String::from("album_artist b"),
|
album_artist_sort: None,
|
||||||
album_artist_sort: None,
|
album_year: 2008,
|
||||||
album_year: 2008,
|
album_title: String::from("album_title b.b"),
|
||||||
album_title: String::from("album_title b.b"),
|
track_number: 2,
|
||||||
track_number: 2,
|
track_title: String::from("track b.b.2"),
|
||||||
track_title: String::from("track b.b.2"),
|
track_artist: vec![
|
||||||
track_artist: vec![
|
String::from("artist b.b.2.1"),
|
||||||
String::from("artist b.b.2.1"),
|
String::from("artist b.b.2.2"),
|
||||||
String::from("artist b.b.2.2"),
|
],
|
||||||
],
|
track_format: Format::Mp3,
|
||||||
track_format: Format::Mp3,
|
track_bitrate: 320,
|
||||||
track_bitrate: 320,
|
},
|
||||||
},
|
Item {
|
||||||
Item {
|
album_artist: String::from("album_artist c"),
|
||||||
album_artist: String::from("album_artist c"),
|
album_artist_sort: None,
|
||||||
album_artist_sort: None,
|
album_year: 1985,
|
||||||
album_year: 1985,
|
album_title: String::from("album_title c.a"),
|
||||||
album_title: String::from("album_title c.a"),
|
track_number: 1,
|
||||||
track_number: 1,
|
track_title: String::from("track c.a.1"),
|
||||||
track_title: String::from("track c.a.1"),
|
track_artist: vec![String::from("artist c.a.1")],
|
||||||
track_artist: vec![String::from("artist c.a.1")],
|
track_format: Format::Mp3,
|
||||||
track_format: Format::Mp3,
|
track_bitrate: 320,
|
||||||
track_bitrate: 320,
|
},
|
||||||
},
|
Item {
|
||||||
Item {
|
album_artist: String::from("album_artist c"),
|
||||||
album_artist: String::from("album_artist c"),
|
album_artist_sort: None,
|
||||||
album_artist_sort: None,
|
album_year: 1985,
|
||||||
album_year: 1985,
|
album_title: String::from("album_title c.a"),
|
||||||
album_title: String::from("album_title c.a"),
|
track_number: 2,
|
||||||
track_number: 2,
|
track_title: String::from("track c.a.2"),
|
||||||
track_title: String::from("track c.a.2"),
|
track_artist: vec![
|
||||||
track_artist: vec![
|
String::from("artist c.a.2.1"),
|
||||||
String::from("artist c.a.2.1"),
|
String::from("artist c.a.2.2"),
|
||||||
String::from("artist c.a.2.2"),
|
],
|
||||||
],
|
track_format: Format::Mp3,
|
||||||
track_format: Format::Mp3,
|
track_bitrate: 120,
|
||||||
track_bitrate: 120,
|
},
|
||||||
},
|
Item {
|
||||||
Item {
|
album_artist: String::from("album_artist c"),
|
||||||
album_artist: String::from("album_artist c"),
|
album_artist_sort: None,
|
||||||
album_artist_sort: None,
|
album_year: 2018,
|
||||||
album_year: 2018,
|
album_title: String::from("album_title c.b"),
|
||||||
album_title: String::from("album_title c.b"),
|
track_number: 1,
|
||||||
track_number: 1,
|
track_title: String::from("track c.b.1"),
|
||||||
track_title: String::from("track c.b.1"),
|
track_artist: vec![String::from("artist c.b.1")],
|
||||||
track_artist: vec![String::from("artist c.b.1")],
|
track_format: Format::Flac,
|
||||||
track_format: Format::Flac,
|
track_bitrate: 1041,
|
||||||
track_bitrate: 1041,
|
},
|
||||||
},
|
Item {
|
||||||
Item {
|
album_artist: String::from("album_artist c"),
|
||||||
album_artist: String::from("album_artist c"),
|
album_artist_sort: None,
|
||||||
album_artist_sort: None,
|
album_year: 2018,
|
||||||
album_year: 2018,
|
album_title: String::from("album_title c.b"),
|
||||||
album_title: String::from("album_title c.b"),
|
track_number: 2,
|
||||||
track_number: 2,
|
track_title: String::from("track c.b.2"),
|
||||||
track_title: String::from("track c.b.2"),
|
track_artist: vec![
|
||||||
track_artist: vec![
|
String::from("artist c.b.2.1"),
|
||||||
String::from("artist c.b.2.1"),
|
String::from("artist c.b.2.2"),
|
||||||
String::from("artist c.b.2.2"),
|
],
|
||||||
],
|
track_format: Format::Flac,
|
||||||
track_format: Format::Flac,
|
track_bitrate: 756,
|
||||||
track_bitrate: 756,
|
},
|
||||||
},
|
]
|
||||||
]
|
});
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
pub static LIBRARY_ITEMS: Lazy<Vec<Item>> = Lazy::new(|| library_items!());
|
|
||||||
|
Loading…
Reference in New Issue
Block a user