diff --git a/src/external/database/json/testmod.rs b/src/external/database/json/testmod.rs index ccd7fce..04fd2b1 100644 --- a/src/external/database/json/testmod.rs +++ b/src/external/database/json/testmod.rs @@ -14,13 +14,13 @@ pub static DATABASE_JSON: &str = "{\ \"title\":\"album_title a.a\",\"lib_id\":{\"Value\":1},\ \"date\":{\"year\":1998,\"month\":null,\"day\":null},\"seq\":1,\ \"musicbrainz\":{\"Some\":\"00000000-0000-0000-0000-000000000000\"},\ - \"status\":\"Official\",\"primary_type\":\"Album\",\"secondary_types\":[]\ + \"primary_type\":\"Album\",\"secondary_types\":[]\ },\ {\ \"title\":\"album_title a.b\",\"lib_id\":{\"Value\":2},\ \"date\":{\"year\":2015,\"month\":4,\"day\":null},\"seq\":1,\ \"musicbrainz\":\"None\",\ - \"status\":\"Official\",\"primary_type\":\"Album\",\"secondary_types\":[]\ + \"primary_type\":\"Album\",\"secondary_types\":[]\ }\ ]\ },\ @@ -41,25 +41,25 @@ pub static DATABASE_JSON: &str = "{\ \"title\":\"album_title b.a\",\"lib_id\":{\"Value\":3},\ \"date\":{\"year\":2003,\"month\":6,\"day\":6},\"seq\":1,\ \"musicbrainz\":\"None\",\ - \"status\":\"Official\",\"primary_type\":\"Album\",\"secondary_types\":[]\ + \"primary_type\":\"Album\",\"secondary_types\":[]\ },\ {\ \"title\":\"album_title b.b\",\"lib_id\":{\"Value\":4},\ \"date\":{\"year\":2008,\"month\":null,\"day\":null},\"seq\":3,\ \"musicbrainz\":{\"Some\":\"11111111-1111-1111-1111-111111111111\"},\ - \"status\":\"Official\",\"primary_type\":\"Album\",\"secondary_types\":[]\ + \"primary_type\":\"Album\",\"secondary_types\":[]\ },\ {\ \"title\":\"album_title b.c\",\"lib_id\":{\"Value\":5},\ \"date\":{\"year\":2009,\"month\":null,\"day\":null},\"seq\":2,\ \"musicbrainz\":{\"Some\":\"11111111-1111-1111-1111-111111111112\"},\ - \"status\":\"Official\",\"primary_type\":\"Album\",\"secondary_types\":[]\ + \"primary_type\":\"Album\",\"secondary_types\":[]\ },\ {\ \"title\":\"album_title b.d\",\"lib_id\":{\"Value\":6},\ \"date\":{\"year\":2015,\"month\":null,\"day\":null},\"seq\":4,\ \"musicbrainz\":\"None\",\ - \"status\":\"Official\",\"primary_type\":\"Album\",\"secondary_types\":[]\ + \"primary_type\":\"Album\",\"secondary_types\":[]\ }\ ]\ },\ @@ -73,13 +73,13 @@ pub static DATABASE_JSON: &str = "{\ \"title\":\"album_title c.a\",\"lib_id\":{\"Value\":7},\ \"date\":{\"year\":1985,\"month\":null,\"day\":null},\"seq\":0,\ \"musicbrainz\":\"None\",\ - \"status\":\"Official\",\"primary_type\":\"Album\",\"secondary_types\":[]\ + \"primary_type\":\"Album\",\"secondary_types\":[]\ },\ {\ \"title\":\"album_title c.b\",\"lib_id\":{\"Value\":8},\ \"date\":{\"year\":2018,\"month\":null,\"day\":null},\"seq\":0,\ \"musicbrainz\":\"None\",\ - \"status\":\"Official\",\"primary_type\":\"Album\",\"secondary_types\":[]\ + \"primary_type\":\"Album\",\"secondary_types\":[]\ }\ ]\ },\ @@ -93,13 +93,13 @@ pub static DATABASE_JSON: &str = "{\ \"title\":\"album_title d.a\",\"lib_id\":{\"Value\":9},\ \"date\":{\"year\":1995,\"month\":null,\"day\":null},\"seq\":0,\ \"musicbrainz\":\"None\",\ - \"status\":\"Official\",\"primary_type\":\"Album\",\"secondary_types\":[]\ + \"primary_type\":\"Album\",\"secondary_types\":[]\ },\ {\ \"title\":\"album_title d.b\",\"lib_id\":{\"Value\":10},\ \"date\":{\"year\":2028,\"month\":null,\"day\":null},\"seq\":0,\ \"musicbrainz\":\"None\",\ - \"status\":\"Official\",\"primary_type\":\"Album\",\"secondary_types\":[]\ + \"primary_type\":\"Album\",\"secondary_types\":[]\ }\ ]\ }\ diff --git a/tests/files/database/database.json b/tests/files/database/database.json index 9d4d6f7..ccce86d 100644 --- a/tests/files/database/database.json +++ b/tests/files/database/database.json @@ -1 +1 @@ -{"V20250103":[{"name":"Аркона","sort":"Arkona","musicbrainz":{"Some":"baad262d-55ef-427a-83c7-f7530964f212"},"properties":{"Bandcamp":["https://arkonamoscow.bandcamp.com/"],"MusicButler":["https://www.musicbutler.io/artist-page/283448581"],"Qobuz":["https://www.qobuz.com/nl-nl/interpreter/arkona/download-streaming-albums"]},"albums":[{"title":"Slovo","lib_id":{"Value":7},"date":{"year":2011,"month":null,"day":null},"seq":0,"musicbrainz":"None","status":"Official","primary_type":"Album","secondary_types":[]}]},{"name":"Eluveitie","sort":null,"musicbrainz":{"Some":"8000598a-5edb-401c-8e6d-36b167feaf38"},"properties":{"MusicButler":["https://www.musicbutler.io/artist-page/269358403"],"Qobuz":["https://www.qobuz.com/nl-nl/interpreter/eluveitie/download-streaming-albums"]},"albums":[{"title":"Vên [re‐recorded]","lib_id":{"Value":1},"date":{"year":2004,"month":null,"day":null},"seq":0,"musicbrainz":"None","status":"Official","primary_type":"Ep","secondary_types":[]},{"title":"Slania","lib_id":{"Value":2},"date":{"year":2008,"month":null,"day":null},"seq":0,"musicbrainz":"None","status":"Official","primary_type":"Album","secondary_types":[]}]},{"name":"Frontside","sort":null,"musicbrainz":{"Some":"3a901353-fccd-4afd-ad01-9c03f451b490"},"properties":{"MusicButler":["https://www.musicbutler.io/artist-page/826588800"],"Qobuz":["https://www.qobuz.com/nl-nl/interpreter/frontside/download-streaming-albums"]},"albums":[{"title":"…nasze jest królestwo, potęga i chwała na wieki…","lib_id":{"Value":3},"date":{"year":2001,"month":null,"day":null},"seq":0,"musicbrainz":"None","status":"Official","primary_type":"Album","secondary_types":[]}]},{"name":"Heaven’s Basement","sort":"Heaven’s Basement","musicbrainz":{"Some":"c2c4d56a-d599-4a18-bd2f-ae644e2198cc"},"properties":{"MusicButler":["https://www.musicbutler.io/artist-page/291158685"],"Qobuz":["https://www.qobuz.com/nl-nl/interpreter/heaven-s-basement/download-streaming-albums"]},"albums":[{"title":"Paper Plague","lib_id":"Singleton","date":{"year":2011,"month":null,"day":null},"seq":0,"musicbrainz":"None","status":null,"primary_type":null,"secondary_types":[]},{"title":"Unbreakable","lib_id":{"Value":4},"date":{"year":2011,"month":null,"day":null},"seq":0,"musicbrainz":"None","status":"Official","primary_type":"Album","secondary_types":[]}]},{"name":"Metallica","sort":null,"musicbrainz":{"Some":"65f4f0c5-ef9e-490c-aee3-909e7ae6b2ab"},"properties":{"MusicButler":["https://www.musicbutler.io/artist-page/3996865"],"Qobuz":["https://www.qobuz.com/nl-nl/interpreter/metallica/download-streaming-albums"]},"albums":[{"title":"Ride the Lightning","lib_id":{"Value":5},"date":{"year":1984,"month":null,"day":null},"seq":0,"musicbrainz":"None","status":"Official","primary_type":"Album","secondary_types":[]},{"title":"S&M","lib_id":{"Value":6},"date":{"year":1999,"month":null,"day":null},"seq":0,"musicbrainz":"None","status":"Official","primary_type":"Album","secondary_types":["Live"]}]}]} \ No newline at end of file +{"V20250103":[{"name":"Аркона","sort":"Arkona","musicbrainz":{"Some":"baad262d-55ef-427a-83c7-f7530964f212"},"properties":{"Bandcamp":["https://arkonamoscow.bandcamp.com/"],"MusicButler":["https://www.musicbutler.io/artist-page/283448581"],"Qobuz":["https://www.qobuz.com/nl-nl/interpreter/arkona/download-streaming-albums"]},"albums":[{"title":"Slovo","lib_id":{"Value":7},"date":{"year":2011,"month":null,"day":null},"seq":0,"musicbrainz":"None","primary_type":"Album","secondary_types":[]}]},{"name":"Eluveitie","sort":null,"musicbrainz":{"Some":"8000598a-5edb-401c-8e6d-36b167feaf38"},"properties":{"MusicButler":["https://www.musicbutler.io/artist-page/269358403"],"Qobuz":["https://www.qobuz.com/nl-nl/interpreter/eluveitie/download-streaming-albums"]},"albums":[{"title":"Vên [re‐recorded]","lib_id":{"Value":1},"date":{"year":2004,"month":null,"day":null},"seq":0,"musicbrainz":"None","primary_type":"Ep","secondary_types":[]},{"title":"Slania","lib_id":{"Value":2},"date":{"year":2008,"month":null,"day":null},"seq":0,"musicbrainz":"None","primary_type":"Album","secondary_types":[]}]},{"name":"Frontside","sort":null,"musicbrainz":{"Some":"3a901353-fccd-4afd-ad01-9c03f451b490"},"properties":{"MusicButler":["https://www.musicbutler.io/artist-page/826588800"],"Qobuz":["https://www.qobuz.com/nl-nl/interpreter/frontside/download-streaming-albums"]},"albums":[{"title":"…nasze jest królestwo, potęga i chwała na wieki…","lib_id":{"Value":3},"date":{"year":2001,"month":null,"day":null},"seq":0,"musicbrainz":"None","primary_type":"Album","secondary_types":[]}]},{"name":"Heaven’s Basement","sort":"Heaven’s Basement","musicbrainz":{"Some":"c2c4d56a-d599-4a18-bd2f-ae644e2198cc"},"properties":{"MusicButler":["https://www.musicbutler.io/artist-page/291158685"],"Qobuz":["https://www.qobuz.com/nl-nl/interpreter/heaven-s-basement/download-streaming-albums"]},"albums":[{"title":"Paper Plague","lib_id":"Singleton","date":{"year":2011,"month":null,"day":null},"seq":0,"musicbrainz":"None","primary_type":null,"secondary_types":[]},{"title":"Unbreakable","lib_id":{"Value":4},"date":{"year":2011,"month":null,"day":null},"seq":0,"musicbrainz":"None","primary_type":"Album","secondary_types":[]}]},{"name":"Metallica","sort":null,"musicbrainz":{"Some":"65f4f0c5-ef9e-490c-aee3-909e7ae6b2ab"},"properties":{"MusicButler":["https://www.musicbutler.io/artist-page/3996865"],"Qobuz":["https://www.qobuz.com/nl-nl/interpreter/metallica/download-streaming-albums"]},"albums":[{"title":"Ride the Lightning","lib_id":{"Value":5},"date":{"year":1984,"month":null,"day":null},"seq":0,"musicbrainz":"None","primary_type":"Album","secondary_types":[]},{"title":"S&M","lib_id":{"Value":6},"date":{"year":1999,"month":null,"day":null},"seq":0,"musicbrainz":"None","primary_type":"Album","secondary_types":["Live"]}]}]} \ No newline at end of file