Updates the technical documentation of the music library, the plugins, and the architecture decisions

This commit is contained in:
BinaryAlley committed 2026-10-06 11:30:00 +03:00
1 parent 012d702b17
commit bf8b49653d
26 files changed
+1836 -620

No files matched your search

@@ -41,6 +41,7 @@ POST api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b
"title": "A Night at the Opera",
"originalTitle": "A Night at the Opera",
"description": "The fourth studio album by the British rock band Queen, released in 1975. It was the most expensive album ever recorded at the time of its release.",
"disambiguation": null,
"releaseInfo": {
"originalReleaseDate": "1975-11-21",
"originalReleaseYear": 1975,
@@ -49,10 +50,6 @@ POST api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b
"releaseCountry": "GB",
"releaseVersion": "Remastered"
},
"releaseType": "Album",
"releaseStatus": "Official",
"totalDiscs": 1,
"totalTracks": 12,
"language": {
"languageCode": "en",
"languageName": "English",
@@ -63,18 +60,27 @@ POST api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b
"languageName": "English",
"nativeName": "English"
},
"tags": [
{ "name": "classic" },
{ "name": "vinyl" }
],
"genres": [
{ "name": "Rock" },
{ "name": "Progressive Rock" }
],
"tags": [
{ "name": "classic" },
{ "name": "vinyl" }
]
"script": "Latn",
"releaseTypes": [ "Album" ],
"releaseStatus": "Official",
"totalDiscs": 1,
"totalTracks": 12,
"releaseTitle": "A Night at the Opera"
},
"mediaFormat": "CD",
"packaging": "JewelCase",
"barcode": "0042282778329",
"catalogNumber": "EMC 4008",
"catalogNumbers": ["EMC 4008"],
"label": "EMI",
"asin": "B000000000",
"musicBrainzReleaseId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"musicBrainzReleaseGroupId": "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e",
"musicBrainzReleaseArtistId": "c3d4e5f6-a7b8-4c9d-0e1f-2a3b4c5d6e7f",
@@ -103,12 +109,7 @@ POST api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b
"title": "Bohemian Rhapsody",
"originalTitle": "Bohemian Rhapsody",
"description": "A song by the British rock band Queen. It was written by Freddie Mercury and originally released on the album A Night at the Opera in 1975.",
"durationInSeconds": 354,
"sampleRate": 44100,
"channels": 2,
"bitDepth": 16,
"audioCodec": "FLAC",
"bitrate": 980,
"disambiguation": null,
"releaseInfo": {
"originalReleaseDate": "1975-10-31",
"originalReleaseYear": 1975,
@@ -127,24 +128,50 @@ POST api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b
"languageName": "English",
"nativeName": "English"
},
"tags": [
{ "name": "classic" },
{ "name": "epic" }
],
"genres": [
{ "name": "Rock" },
{ "name": "Progressive Rock" }
],
"tags": [
{ "name": "classic" },
{ "name": "epic" }
]
"isVideo": false,
"durationInSeconds": 354,
"sampleRate": 44100,
"channels": 2,
"bitDepth": 16,
"audioCodec": "FLAC",
"bitrate": 980,
"acoustId": "f0e1d2c3-b4a5-4c6d-8e7f-9a0b1c2d3e4f",
"replayGainTrackGain": -7.5,
"replayGainTrackPeak": 0.9877,
"replayGainAlbumGain": -6.8,
"replayGainAlbumPeak": 0.9999
},
"trackNumber": 1,
"discNumber": 1,
"script": "Latn",
"key": "CMajor",
"bpm": 72,
"work": "Bohemian Rhapsody",
"work": {
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
"title": "Bohemian Rhapsody",
"type": "Song",
"languages": [
{ "languageCode": "en", "languageName": "English", "nativeName": "English" }
],
"iswcs": []
},
"musicBrainzRecordingId": "d4e5f6a7-b8c9-4d0e-1f2a-3b4c5d6e7f8a",
"musicBrainzTrackId": "e5f6a7b8-c9d0-4e1f-2a3b-4c5d6e7f8a9b",
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
"moods": [
{ "name": "dramatic" },
{ "name": "anxious" }
],
"isrcs": [
{ "value": "GBUM71029604" }
],
"contributors": [
{ "contributorId": "6a3f0c2d-1b4e-4f5a-8c6d-9e0f1a2b3c4d", "role": "Vocals" },
{ "contributorId": "7b4e1d3f-2c5a-4e6b-9d7e-0f1a2b3c4d5e", "role": "Guitar" }
@@ -162,13 +189,6 @@ POST api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b
"source": "LastFm",
"voteCount": 1234
}
],
"moods": [
{ "name": "dramatic" },
{ "name": "anxious" }
],
"isrcs": [
{ "value": "GBUM71029604" }
]
},
{
@@ -177,12 +197,7 @@ POST api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b
"title": "You're My Best Friend",
"originalTitle": "You're My Best Friend",
"description": "A song by the British rock band Queen, written by bass guitarist John Deacon. It was originally released on the album A Night at the Opera in 1975 and as a single in 1976.",
"durationInSeconds": 181,
"sampleRate": 44100,
"channels": 2,
"bitDepth": 16,
"audioCodec": "FLAC",
"bitrate": 912,
"disambiguation": null,
"releaseInfo": {
"originalReleaseDate": "1976-06-18",
"originalReleaseYear": 1976,
@@ -201,24 +216,50 @@ POST api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b
"languageName": "English",
"nativeName": "English"
},
"tags": [
{ "name": "classic" },
{ "name": "love" }
],
"genres": [
{ "name": "Rock" },
{ "name": "Pop Rock" }
],
"tags": [
{ "name": "classic" },
{ "name": "love" }
]
"isVideo": false,
"durationInSeconds": 181,
"sampleRate": 44100,
"channels": 2,
"bitDepth": 16,
"audioCodec": "FLAC",
"bitrate": 912,
"acoustId": null,
"replayGainTrackGain": null,
"replayGainTrackPeak": null,
"replayGainAlbumGain": null,
"replayGainAlbumPeak": null
},
"trackNumber": 7,
"discNumber": 1,
"script": "Latn",
"key": "BMajor",
"bpm": 118,
"work": "You're My Best Friend",
"work": {
"musicBrainzWorkId": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
"title": "You're My Best Friend",
"type": "Song",
"languages": [
{ "languageCode": "en", "languageName": "English", "nativeName": "English" }
],
"iswcs": []
},
"musicBrainzRecordingId": "0f3e4d5c-6b7a-4f8e-9d0c-1b2a3c4d5e6f",
"musicBrainzTrackId": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"musicBrainzWorkId": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
"moods": [
{ "name": "happy" },
{ "name": "warm" }
],
"isrcs": [
{ "value": "GBUM71029609" }
],
"contributors": [
{ "contributorId": "6a3f0c2d-1b4e-4f5a-8c6d-9e0f1a2b3c4d", "role": "Vocals" },
{ "contributorId": "8c5f2e4a-3d6b-4f7c-ae8f-1a2b3c4d5e6f", "role": "BassGuitar" }
@@ -236,13 +277,6 @@ POST api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b
"source": "LastFm",
"voteCount": 567
}
],
"moods": [
{ "name": "happy" },
{ "name": "warm" }
],
"isrcs": [
{ "value": "GBUM71029609" }
]
}
]
@@ -264,10 +298,7 @@ POST api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b
"title": "A Night at the Opera",
"originalTitle": "A Night at the Opera",
"description": "The fourth studio album by the British rock band Queen, released in 1975. It was the most expensive album ever recorded at the time of its release.",
"releaseType": "Album",
"releaseStatus": "Official",
"totalDiscs": 1,
"totalTracks": 12,
"disambiguation": null,
"releaseInfo": {
"originalReleaseDate": "1975-11-21",
"originalReleaseYear": 1975,
@@ -286,26 +317,27 @@ POST api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b
"languageName": "English",
"nativeName": "English"
},
"genres": [
{
"name": "Rock"
},
{
"name": "Progressive Rock"
}
],
"tags": [
{
"name": "classic"
},
{
"name": "vinyl"
}
]
{ "name": "classic" },
{ "name": "vinyl" }
],
"genres": [
{ "name": "Rock" },
{ "name": "Progressive Rock" }
],
"script": "Latn",
"releaseTypes": [ "Album" ],
"releaseStatus": "Official",
"totalDiscs": 1,
"totalTracks": 12,
"releaseTitle": "A Night at the Opera"
},
"mediaFormat": "CD",
"packaging": "JewelCase",
"barcode": "0042282778329",
"catalogNumber": "EMC 4008",
"catalogNumbers": ["EMC 4008"],
"label": "EMI",
"asin": "B000000000",
"musicBrainzReleaseId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"musicBrainzReleaseGroupId": "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e",
"musicBrainzReleaseArtistId": "c3d4e5f6-a7b8-4c9d-0e1f-2a3b4c5d6e7f",
@@ -345,50 +377,50 @@ POST api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b
"title": "Bohemian Rhapsody",
"originalTitle": "Bohemian Rhapsody",
"description": "A song by the British rock band Queen. It was written by Freddie Mercury and originally released on the album A Night at the Opera in 1975.",
"releaseInfo": {
"originalReleaseDate": "1975-10-31",
"originalReleaseYear": 1975,
"reReleaseDate": null,
"reReleaseYear": null,
"releaseCountry": "GB",
"releaseVersion": "Original"
},
"language": {
"languageCode": "en",
"languageName": "English",
"nativeName": "English"
},
"originalLanguage": {
"languageCode": "en",
"languageName": "English",
"nativeName": "English"
},
"tags": [
{ "name": "classic" },
{ "name": "epic" }
],
"genres": [
{ "name": "Rock" },
{ "name": "Progressive Rock" }
],
"disambiguation": null,
"releaseInfo": { "originalReleaseDate": "1975-10-31", "originalReleaseYear": 1975, "reReleaseDate": null, "reReleaseYear": null, "releaseCountry": "GB", "releaseVersion": "Original" },
"language": { "languageCode": "en", "languageName": "English", "nativeName": "English" },
"originalLanguage": { "languageCode": "en", "languageName": "English", "nativeName": "English" },
"tags": [ { "name": "classic" }, { "name": "epic" } ],
"genres": [ { "name": "Rock" }, { "name": "Progressive Rock" } ],
"isVideo": false,
"durationInSeconds": 354,
"sampleRate": 44100,
"channels": 2,
"bitDepth": 16,
"audioCodec": "FLAC",
"bitrate": 980
"bitrate": 980,
"acoustId": "f0e1d2c3-b4a5-4c6d-8e7f-9a0b1c2d3e4f",
"replayGainTrackGain": -7.5,
"replayGainTrackPeak": 0.9877,
"replayGainAlbumGain": -6.8,
"replayGainAlbumPeak": 0.9999
},
"trackNumber": 1,
"discNumber": 1,
"script": "Latn",
"key": "CMajor",
"bpm": 72,
"work": "Bohemian Rhapsody",
"work": {
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
"title": "Bohemian Rhapsody",
"type": "Song",
"languages": [
{ "languageCode": "en", "languageName": "English", "nativeName": "English" }
],
"iswcs": []
},
"musicBrainzRecordingId": "d4e5f6a7-b8c9-4d0e-1f2a-3b4c5d6e7f8a",
"musicBrainzTrackId": "e5f6a7b8-c9d0-4e1f-2a3b-4c5d6e7f8a9b",
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
"createdOnUtc": "2025-01-01T12:00:00.0000000Z",
"updatedOnUtc": null,
"moods": [
{ "name": "dramatic" },
{ "name": "anxious" }
],
"isrcs": [
{ "value": "GBUM71029604" }
],
"contributors": [
{
"contributorId": "6a3f0c2d-1b4e-4f5a-8c6d-9e0f1a2b3c4d",
@@ -412,13 +444,6 @@ POST api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b
"source": "LastFm",
"voteCount": 1234
}
],
"moods": [
{ "name": "dramatic" },
{ "name": "anxious" }
],
"isrcs": [
{ "value": "GBUM71029604" }
]
},
{
@@ -430,50 +455,50 @@ POST api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b
"title": "You're My Best Friend",
"originalTitle": "You're My Best Friend",
"description": "A song by the British rock band Queen, written by bass guitarist John Deacon. It was originally released on the album A Night at the Opera in 1975 and as a single in 1976.",
"releaseInfo": {
"originalReleaseDate": "1976-06-18",
"originalReleaseYear": 1976,
"reReleaseDate": null,
"reReleaseYear": null,
"releaseCountry": "GB",
"releaseVersion": "Original"
},
"language": {
"languageCode": "en",
"languageName": "English",
"nativeName": "English"
},
"originalLanguage": {
"languageCode": "en",
"languageName": "English",
"nativeName": "English"
},
"tags": [
{ "name": "classic" },
{ "name": "love" }
],
"genres": [
{ "name": "Rock" },
{ "name": "Pop Rock" }
],
"disambiguation": null,
"releaseInfo": { "originalReleaseDate": "1976-06-18", "originalReleaseYear": 1976, "reReleaseDate": null, "reReleaseYear": null, "releaseCountry": "GB", "releaseVersion": "Original" },
"language": { "languageCode": "en", "languageName": "English", "nativeName": "English" },
"originalLanguage": { "languageCode": "en", "languageName": "English", "nativeName": "English" },
"tags": [ { "name": "classic" }, { "name": "love" } ],
"genres": [ { "name": "Rock" }, { "name": "Pop Rock" } ],
"isVideo": false,
"durationInSeconds": 181,
"sampleRate": 44100,
"channels": 2,
"bitDepth": 16,
"audioCodec": "FLAC",
"bitrate": 912
"bitrate": 912,
"acoustId": null,
"replayGainTrackGain": null,
"replayGainTrackPeak": null,
"replayGainAlbumGain": null,
"replayGainAlbumPeak": null
},
"trackNumber": 7,
"discNumber": 1,
"script": "Latn",
"key": "BMajor",
"bpm": 118,
"work": "You're My Best Friend",
"work": {
"musicBrainzWorkId": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
"title": "You're My Best Friend",
"type": "Song",
"languages": [
{ "languageCode": "en", "languageName": "English", "nativeName": "English" }
],
"iswcs": []
},
"musicBrainzRecordingId": "0f3e4d5c-6b7a-4f8e-9d0c-1b2a3c4d5e6f",
"musicBrainzTrackId": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"musicBrainzWorkId": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
"createdOnUtc": "2025-01-01T12:00:00.0000000Z",
"updatedOnUtc": null,
"moods": [
{ "name": "happy" },
{ "name": "warm" }
],
"isrcs": [
{ "value": "GBUM71029609" }
],
"contributors": [
{
"contributorId": "6a3f0c2d-1b4e-4f5a-8c6d-9e0f1a2b3c4d",
@@ -497,13 +522,6 @@ POST api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b
"source": "LastFm",
"voteCount": 567
}
],
"moods": [
{ "name": "happy" },
{ "name": "warm" }
],
"isrcs": [
{ "value": "GBUM71029609" }
]
}
]
@@ -535,10 +553,7 @@ GET api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b-
"title": "A Night at the Opera",
"originalTitle": "A Night at the Opera",
"description": "The fourth studio album by the British rock band Queen, released in 1975. It was the most expensive album ever recorded at the time of its release.",
"releaseType": "Album",
"releaseStatus": "Official",
"totalDiscs": 1,
"totalTracks": 12,
"disambiguation": null,
"releaseInfo": {
"originalReleaseDate": "1975-11-21",
"originalReleaseYear": 1975,
@@ -557,26 +572,27 @@ GET api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b-
"languageName": "English",
"nativeName": "English"
},
"genres": [
{
"name": "Rock"
},
{
"name": "Progressive Rock"
}
],
"tags": [
{
"name": "classic"
},
{
"name": "vinyl"
}
]
{ "name": "classic" },
{ "name": "vinyl" }
],
"genres": [
{ "name": "Rock" },
{ "name": "Progressive Rock" }
],
"script": "Latn",
"releaseTypes": [ "Album" ],
"releaseStatus": "Official",
"totalDiscs": 1,
"totalTracks": 12,
"releaseTitle": "A Night at the Opera"
},
"mediaFormat": "CD",
"packaging": "JewelCase",
"barcode": "0042282778329",
"catalogNumber": "EMC 4008",
"catalogNumbers": ["EMC 4008"],
"label": "EMI",
"asin": "B000000000",
"musicBrainzReleaseId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"musicBrainzReleaseGroupId": "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e",
"musicBrainzReleaseArtistId": "c3d4e5f6-a7b8-4c9d-0e1f-2a3b4c5d6e7f",
@@ -671,10 +687,7 @@ GET api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b-
"title": "A Night at the Opera",
"originalTitle": "A Night at the Opera",
"description": "The fourth studio album by the British rock band Queen, released in 1975. It was the most expensive album ever recorded at the time of its release.",
"releaseType": "Album",
"releaseStatus": "Official",
"totalDiscs": 1,
"totalTracks": 12,
"disambiguation": null,
"releaseInfo": {
"originalReleaseDate": "1975-11-21",
"originalReleaseYear": 1975,
@@ -693,26 +706,27 @@ GET api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b-
"languageName": "English",
"nativeName": "English"
},
"genres": [
{
"name": "Rock"
},
{
"name": "Progressive Rock"
}
],
"tags": [
{
"name": "classic"
},
{
"name": "vinyl"
}
]
{ "name": "classic" },
{ "name": "vinyl" }
],
"genres": [
{ "name": "Rock" },
{ "name": "Progressive Rock" }
],
"script": "Latn",
"releaseTypes": [ "Album" ],
"releaseStatus": "Official",
"totalDiscs": 1,
"totalTracks": 12,
"releaseTitle": "A Night at the Opera"
},
"mediaFormat": "CD",
"packaging": "JewelCase",
"barcode": "0042282778329",
"catalogNumber": "EMC 4008",
"catalogNumbers": ["EMC 4008"],
"label": "EMI",
"asin": "B000000000",
"musicBrainzReleaseId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"musicBrainzReleaseGroupId": "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e",
"musicBrainzReleaseArtistId": "c3d4e5f6-a7b8-4c9d-0e1f-2a3b4c5d6e7f",
@@ -761,6 +775,7 @@ PUT api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b-
"title": "A Night at the Opera",
"originalTitle": "A Night at the Opera",
"description": "The fourth studio album by the British rock band Queen, released in 1975. It was the most expensive album ever recorded at the time of its release.",
"disambiguation": null,
"releaseInfo": {
"originalReleaseDate": "1975-11-21",
"originalReleaseYear": 1975,
@@ -769,10 +784,6 @@ PUT api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b-
"releaseCountry": "GB",
"releaseVersion": "Remastered"
},
"releaseType": "Album",
"releaseStatus": "Official",
"totalDiscs": 1,
"totalTracks": 12,
"language": {
"languageCode": "en",
"languageName": "English",
@@ -783,18 +794,27 @@ PUT api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b-
"languageName": "English",
"nativeName": "English"
},
"tags": [
{ "name": "classic" },
{ "name": "vinyl" }
],
"genres": [
{ "name": "Rock" },
{ "name": "Progressive Rock" }
],
"tags": [
{ "name": "classic" },
{ "name": "vinyl" }
]
"script": "Latn",
"releaseTypes": [ "Album" ],
"releaseStatus": "Official",
"totalDiscs": 1,
"totalTracks": 12,
"releaseTitle": "A Night at the Opera"
},
"mediaFormat": "CD",
"packaging": "JewelCase",
"barcode": "0042282778329",
"catalogNumber": "EMC 4008",
"catalogNumbers": ["EMC 4008"],
"label": "EMI",
"asin": "B000000000",
"musicBrainzReleaseId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"musicBrainzReleaseGroupId": "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e",
"musicBrainzReleaseArtistId": "c3d4e5f6-a7b8-4c9d-0e1f-2a3b4c5d6e7f",
@@ -834,10 +854,7 @@ PUT api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b-
"title": "A Night at the Opera",
"originalTitle": "A Night at the Opera",
"description": "The fourth studio album by the British rock band Queen, released in 1975. It was the most expensive album ever recorded at the time of its release.",
"releaseType": "Album",
"releaseStatus": "Official",
"totalDiscs": 1,
"totalTracks": 12,
"disambiguation": null,
"releaseInfo": {
"originalReleaseDate": "1975-11-21",
"originalReleaseYear": 1975,
@@ -856,26 +873,27 @@ PUT api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b-
"languageName": "English",
"nativeName": "English"
},
"genres": [
{
"name": "Rock"
},
{
"name": "Progressive Rock"
}
],
"tags": [
{
"name": "classic"
},
{
"name": "vinyl"
}
]
{ "name": "classic" },
{ "name": "vinyl" }
],
"genres": [
{ "name": "Rock" },
{ "name": "Progressive Rock" }
],
"script": "Latn",
"releaseTypes": [ "Album" ],
"releaseStatus": "Official",
"totalDiscs": 1,
"totalTracks": 12,
"releaseTitle": "A Night at the Opera"
},
"mediaFormat": "CD",
"packaging": "JewelCase",
"barcode": "0042282778329",
"catalogNumber": "EMC 4008",
"catalogNumbers": ["EMC 4008"],
"label": "EMI",
"asin": "B000000000",
"musicBrainzReleaseId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"musicBrainzReleaseGroupId": "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e",
"musicBrainzReleaseArtistId": "c3d4e5f6-a7b8-4c9d-0e1f-2a3b4c5d6e7f",
@@ -948,27 +966,41 @@ GET api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b-
"title": "Bohemian Rhapsody",
"originalTitle": "Bohemian Rhapsody",
"description": "A song by the British rock band Queen. It was written by Freddie Mercury and originally released on the album A Night at the Opera in 1975.",
"disambiguation": null,
"releaseInfo": { "originalReleaseDate": "1975-10-31", "originalReleaseYear": 1975, "reReleaseDate": null, "reReleaseYear": null, "releaseCountry": "GB", "releaseVersion": "Original" },
"language": { "languageCode": "en", "languageName": "English", "nativeName": "English" },
"originalLanguage": { "languageCode": "en", "languageName": "English", "nativeName": "English" },
"tags": [ { "name": "classic" }, { "name": "epic" } ],
"genres": [ { "name": "Rock" }, { "name": "Progressive Rock" } ],
"isVideo": false,
"durationInSeconds": 354,
"sampleRate": 44100,
"channels": 2,
"bitDepth": 16,
"audioCodec": "FLAC",
"bitrate": 980
"bitrate": 980,
"acoustId": "f0e1d2c3-b4a5-4c6d-8e7f-9a0b1c2d3e4f",
"replayGainTrackGain": -7.5,
"replayGainTrackPeak": 0.9877,
"replayGainAlbumGain": -6.8,
"replayGainAlbumPeak": 0.9999
},
"trackNumber": 1,
"discNumber": 1,
"script": "Latn",
"key": "CMajor",
"bpm": 72,
"work": "Bohemian Rhapsody",
"work": {
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
"title": "Bohemian Rhapsody",
"type": "Song",
"languages": [
{ "languageCode": "en", "languageName": "English", "nativeName": "English" }
],
"iswcs": []
},
"musicBrainzRecordingId": "d4e5f6a7-b8c9-4d0e-1f2a-3b4c5d6e7f8a",
"musicBrainzTrackId": "e5f6a7b8-c9d0-4e1f-2a3b-4c5d6e7f8a9b",
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
"createdOnUtc": "2025-01-01T12:00:00.0000000Z",
"updatedOnUtc": null,
"moods": [
@@ -1048,7 +1080,3 @@ GET api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b-
"numberOfPages": 1
}
```
@@ -31,19 +31,68 @@ POST api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists
```json
{
"name": "Queen",
"metadata": {
"name": "Queen",
"sortName": "Queen",
"disambiguation": null,
"type": "Group",
"gender": null,
"country": "GB",
"area": {
"musicBrainzAreaId": "7f2a1b3c-4d5e-4f6a-8b9c-0d1e2f3a4b5c",
"name": "United Kingdom",
"sortName": "United Kingdom",
"disambiguation": null,
"type": "Country",
"iso3166Code": "GB"
},
"beginArea": null,
"endArea": null,
"lifeSpanBegin": "1970-06-27",
"lifeSpanEnd": null,
"isEnded": false,
"genres": [
{ "name": "Rock" }
],
"tags": [
{ "name": "classic" }
],
"aliases": [
{
"name": "Queen",
"sortName": "Queen",
"type": "Artist name",
"locale": "en",
"isPrimary": true,
"beginDate": "1970-06-27",
"endDate": null,
"isEnded": false
}
]
},
"website": "https://www.queenonline.com",
"musicBrainzArtistId": "6f9c0b2a-1d3e-4a5b-8c7d-9e0f1a2b3c4d",
"ipis": [],
"isnis": [],
"contributors": [
{ "contributorId": "6a3f0c2d-1b4e-4f5a-8c6d-9e0f1a2b3c4d", "role": "Vocals" },
{ "contributorId": "7b4e1d3f-2c5a-4e6b-9d7e-0f1a2b3c4d5e", "role": "Guitar" }
],
"ratings": [
{
"value": 4.5,
"maxValue": 5,
"source": "MusicBrainz",
"voteCount": 2345
}
],
"albums": [
{
"metadata": {
"title": "A Night at the Opera",
"originalTitle": "A Night at the Opera",
"description": "The fourth studio album by the British rock band Queen, released in 1975. It was the most expensive album ever recorded at the time of its release.",
"disambiguation": null,
"releaseInfo": {
"originalReleaseDate": "1975-11-21",
"originalReleaseYear": 1975,
@@ -70,14 +119,19 @@ POST api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists
{ "name": "Rock" },
{ "name": "Progressive Rock" }
],
"releaseType": "Album",
"script": "Latn",
"releaseTypes": [ "Album" ],
"releaseStatus": "Official",
"totalDiscs": 1,
"totalTracks": 12
"totalTracks": 12,
"releaseTitle": "A Night at the Opera"
},
"mediaFormat": "CD",
"packaging": "JewelCase",
"barcode": "0042282778329",
"catalogNumber": "EMC 4008",
"catalogNumbers": ["EMC 4008"],
"label": "EMI",
"asin": "B000000000",
"musicBrainzReleaseId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"musicBrainzReleaseGroupId": "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e",
"musicBrainzReleaseArtistId": "c3d4e5f6-a7b8-4c9d-0e1f-2a3b4c5d6e7f",
@@ -106,6 +160,7 @@ POST api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists
"title": "Bohemian Rhapsody",
"originalTitle": "Bohemian Rhapsody",
"description": "A song by the British rock band Queen. It was written by Freddie Mercury and originally released on the album A Night at the Opera in 1975.",
"disambiguation": null,
"releaseInfo": {
"originalReleaseDate": "1975-10-31",
"originalReleaseYear": 1975,
@@ -132,22 +187,35 @@ POST api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists
{ "name": "Rock" },
{ "name": "Progressive Rock" }
],
"isVideo": false,
"durationInSeconds": 354,
"sampleRate": 44100,
"channels": 2,
"bitDepth": 16,
"audioCodec": "FLAC",
"bitrate": 980
"bitrate": 980,
"acoustId": "f0e1d2c3-b4a5-4c6d-8e7f-9a0b1c2d3e4f",
"replayGainTrackGain": -7.5,
"replayGainTrackPeak": 0.9877,
"replayGainAlbumGain": -6.8,
"replayGainAlbumPeak": 0.9999
},
"trackNumber": 1,
"discNumber": 1,
"script": "Latn",
"key": "CMajor",
"bpm": 72,
"work": "Bohemian Rhapsody",
"work": {
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
"title": "Bohemian Rhapsody",
"type": "Song",
"languages": [
{ "languageCode": "en", "languageName": "English", "nativeName": "English" }
],
"iswcs": []
},
"musicBrainzRecordingId": "d4e5f6a7-b8c9-4d0e-1f2a-3b4c5d6e7f8a",
"musicBrainzTrackId": "e5f6a7b8-c9d0-4e1f-2a3b-4c5d6e7f8a9b",
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
"moods": [
{ "name": "dramatic" },
{ "name": "anxious" }
@@ -180,6 +248,7 @@ POST api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists
"title": "You're My Best Friend",
"originalTitle": "You're My Best Friend",
"description": "A song by the British rock band Queen, written by bass guitarist John Deacon. It was originally released on the album A Night at the Opera in 1975 and as a single in 1976.",
"disambiguation": null,
"releaseInfo": {
"originalReleaseDate": "1976-06-18",
"originalReleaseYear": 1976,
@@ -206,22 +275,35 @@ POST api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists
{ "name": "Rock" },
{ "name": "Pop Rock" }
],
"isVideo": false,
"durationInSeconds": 181,
"sampleRate": 44100,
"channels": 2,
"bitDepth": 16,
"audioCodec": "FLAC",
"bitrate": 912
"bitrate": 912,
"acoustId": null,
"replayGainTrackGain": null,
"replayGainTrackPeak": null,
"replayGainAlbumGain": null,
"replayGainAlbumPeak": null
},
"trackNumber": 7,
"discNumber": 1,
"script": "Latn",
"key": "BMajor",
"bpm": 118,
"work": "You're My Best Friend",
"work": {
"musicBrainzWorkId": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
"title": "You're My Best Friend",
"type": "Song",
"languages": [
{ "languageCode": "en", "languageName": "English", "nativeName": "English" }
],
"iswcs": []
},
"musicBrainzRecordingId": "0f3e4d5c-6b7a-4f8e-9d0c-1b2a3c4d5e6f",
"musicBrainzTrackId": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"musicBrainzWorkId": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
"moods": [
{ "name": "happy" },
{ "name": "warm" }
@@ -264,13 +346,63 @@ POST api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists
{
"id": "d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a",
"libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a",
"name": "Queen",
"metadata": {
"name": "Queen",
"sortName": "Queen",
"disambiguation": null,
"type": "Group",
"gender": null,
"country": "GB",
"area": {
"musicBrainzAreaId": "7f2a1b3c-4d5e-4f6a-8b9c-0d1e2f3a4b5c",
"name": "United Kingdom",
"sortName": "United Kingdom",
"disambiguation": null,
"type": "Country",
"iso3166Code": "GB"
},
"beginArea": null,
"endArea": null,
"lifeSpanBegin": "1970-06-27",
"lifeSpanEnd": null,
"isEnded": false,
"genres": [
{ "name": "Rock" }
],
"tags": [
{ "name": "classic" }
],
"aliases": [
{
"name": "Queen",
"sortName": "Queen",
"type": "Artist name",
"locale": "en",
"isPrimary": true,
"beginDate": "1970-06-27",
"endDate": null,
"isEnded": false
}
]
},
"website": "https://www.queenonline.com",
"musicBrainzArtistId": "6f9c0b2a-1d3e-4a5b-8c7d-9e0f1a2b3c4d",
"ipis": [],
"isnis": [],
"createdOnUtc": "2025-01-01T12:00:00.0000000Z",
"updatedOnUtc": null,
"contributors": [
{ "contributorId": "6a3f0c2d-1b4e-4f5a-8c6d-9e0f1a2b3c4d", "role": "Vocals" },
{ "contributorId": "7b4e1d3f-2c5a-4e6b-9d7e-0f1a2b3c4d5e", "role": "Guitar" }
],
"ratings": [
{
"value": 4.5,
"maxValue": 5,
"source": "MusicBrainz",
"voteCount": 2345
}
],
"albums": [
{
"id": "e8d52f7b-0a3c-4c2d-ab4f-8a7b6c5d4e3f",
@@ -280,10 +412,7 @@ POST api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists
"title": "A Night at the Opera",
"originalTitle": "A Night at the Opera",
"description": "The fourth studio album by the British rock band Queen, released in 1975. It was the most expensive album ever recorded at the time of its release.",
"releaseType": "Album",
"releaseStatus": "Official",
"totalDiscs": 1,
"totalTracks": 12,
"disambiguation": null,
"releaseInfo": {
"originalReleaseDate": "1975-11-21",
"originalReleaseYear": 1975,
@@ -302,26 +431,27 @@ POST api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists
"languageName": "English",
"nativeName": "English"
},
"genres": [
{
"name": "Rock"
},
{
"name": "Progressive Rock"
}
],
"tags": [
{
"name": "classic"
},
{
"name": "vinyl"
}
]
{ "name": "classic" },
{ "name": "vinyl" }
],
"genres": [
{ "name": "Rock" },
{ "name": "Progressive Rock" }
],
"script": "Latn",
"releaseTypes": [ "Album" ],
"releaseStatus": "Official",
"totalDiscs": 1,
"totalTracks": 12,
"releaseTitle": "A Night at the Opera"
},
"mediaFormat": "CD",
"packaging": "JewelCase",
"barcode": "0042282778329",
"catalogNumber": "EMC 4008",
"catalogNumbers": ["EMC 4008"],
"label": "EMI",
"asin": "B000000000",
"musicBrainzReleaseId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"musicBrainzReleaseGroupId": "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e",
"musicBrainzReleaseArtistId": "c3d4e5f6-a7b8-4c9d-0e1f-2a3b4c5d6e7f",
@@ -361,27 +491,41 @@ POST api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists
"title": "Bohemian Rhapsody",
"originalTitle": "Bohemian Rhapsody",
"description": "A song by the British rock band Queen. It was written by Freddie Mercury and originally released on the album A Night at the Opera in 1975.",
"disambiguation": null,
"releaseInfo": { "originalReleaseDate": "1975-10-31", "originalReleaseYear": 1975, "reReleaseDate": null, "reReleaseYear": null, "releaseCountry": "GB", "releaseVersion": "Original" },
"language": { "languageCode": "en", "languageName": "English", "nativeName": "English" },
"originalLanguage": { "languageCode": "en", "languageName": "English", "nativeName": "English" },
"tags": [ { "name": "classic" }, { "name": "epic" } ],
"genres": [ { "name": "Rock" }, { "name": "Progressive Rock" } ],
"isVideo": false,
"durationInSeconds": 354,
"sampleRate": 44100,
"channels": 2,
"bitDepth": 16,
"audioCodec": "FLAC",
"bitrate": 980
"bitrate": 980,
"acoustId": "f0e1d2c3-b4a5-4c6d-8e7f-9a0b1c2d3e4f",
"replayGainTrackGain": -7.5,
"replayGainTrackPeak": 0.9877,
"replayGainAlbumGain": -6.8,
"replayGainAlbumPeak": 0.9999
},
"trackNumber": 1,
"discNumber": 1,
"script": "Latn",
"key": "CMajor",
"bpm": 72,
"work": "Bohemian Rhapsody",
"work": {
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
"title": "Bohemian Rhapsody",
"type": "Song",
"languages": [
{ "languageCode": "en", "languageName": "English", "nativeName": "English" }
],
"iswcs": []
},
"musicBrainzRecordingId": "d4e5f6a7-b8c9-4d0e-1f2a-3b4c5d6e7f8a",
"musicBrainzTrackId": "e5f6a7b8-c9d0-4e1f-2a3b-4c5d6e7f8a9b",
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
"createdOnUtc": "2025-01-01T12:00:00.0000000Z",
"updatedOnUtc": null,
"moods": [
@@ -425,27 +569,41 @@ POST api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists
"title": "You're My Best Friend",
"originalTitle": "You're My Best Friend",
"description": "A song by the British rock band Queen, written by bass guitarist John Deacon. It was originally released on the album A Night at the Opera in 1975 and as a single in 1976.",
"disambiguation": null,
"releaseInfo": { "originalReleaseDate": "1976-06-18", "originalReleaseYear": 1976, "reReleaseDate": null, "reReleaseYear": null, "releaseCountry": "GB", "releaseVersion": "Original" },
"language": { "languageCode": "en", "languageName": "English", "nativeName": "English" },
"originalLanguage": { "languageCode": "en", "languageName": "English", "nativeName": "English" },
"tags": [ { "name": "classic" }, { "name": "love" } ],
"genres": [ { "name": "Rock" }, { "name": "Pop Rock" } ],
"isVideo": false,
"durationInSeconds": 181,
"sampleRate": 44100,
"channels": 2,
"bitDepth": 16,
"audioCodec": "FLAC",
"bitrate": 912
"bitrate": 912,
"acoustId": null,
"replayGainTrackGain": null,
"replayGainTrackPeak": null,
"replayGainAlbumGain": null,
"replayGainAlbumPeak": null
},
"trackNumber": 7,
"discNumber": 1,
"script": "Latn",
"key": "BMajor",
"bpm": 118,
"work": "You're My Best Friend",
"work": {
"musicBrainzWorkId": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
"title": "You're My Best Friend",
"type": "Song",
"languages": [
{ "languageCode": "en", "languageName": "English", "nativeName": "English" }
],
"iswcs": []
},
"musicBrainzRecordingId": "0f3e4d5c-6b7a-4f8e-9d0c-1b2a3c4d5e6f",
"musicBrainzTrackId": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"musicBrainzWorkId": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
"createdOnUtc": "2025-01-01T12:00:00.0000000Z",
"updatedOnUtc": null,
"moods": [
@@ -482,9 +640,7 @@ POST api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists
}
]
}
],
"createdOnUtc": "2025-01-01T12:00:00.0000000Z",
"updatedOnUtc": null
]
}
```
@@ -515,13 +671,32 @@ GET api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists?currentPage=1&
{
"id": "d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a",
"libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a",
"name": "Queen",
"metadata": {
"name": "Queen",
"sortName": "Queen",
"disambiguation": null,
"type": "Group",
"gender": null,
"country": "GB",
"area": null,
"beginArea": null,
"endArea": null,
"lifeSpanBegin": "1970-06-27",
"lifeSpanEnd": null,
"isEnded": false,
"genres": [],
"tags": [],
"aliases": []
},
"website": "https://www.queenonline.com",
"musicBrainzArtistId": "6f9c0b2a-1d3e-4a5b-8c7d-9e0f1a2b3c4d",
"contributors": [],
"albums": [],
"ipis": [],
"isnis": [],
"createdOnUtc": "2025-01-01T12:00:00.0000000Z",
"updatedOnUtc": null
"updatedOnUtc": null,
"contributors": [],
"ratings": [],
"albums": []
}
],
"currentPage": 1,
@@ -586,16 +761,64 @@ GET api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/{artistId}
{
"id": "d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a",
"libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a",
"name": "Queen",
"metadata": {
"name": "Queen",
"sortName": "Queen",
"disambiguation": null,
"type": "Group",
"gender": null,
"country": "GB",
"area": {
"musicBrainzAreaId": "7f2a1b3c-4d5e-4f6a-8b9c-0d1e2f3a4b5c",
"name": "United Kingdom",
"sortName": "United Kingdom",
"disambiguation": null,
"type": "Country",
"iso3166Code": "GB"
},
"beginArea": null,
"endArea": null,
"lifeSpanBegin": "1970-06-27",
"lifeSpanEnd": null,
"isEnded": false,
"genres": [
{ "name": "Rock" }
],
"tags": [
{ "name": "classic" }
],
"aliases": [
{
"name": "Queen",
"sortName": "Queen",
"type": "Artist name",
"locale": "en",
"isPrimary": true,
"beginDate": "1970-06-27",
"endDate": null,
"isEnded": false
}
]
},
"website": "https://www.queenonline.com",
"musicBrainzArtistId": "6f9c0b2a-1d3e-4a5b-8c7d-9e0f1a2b3c4d",
"ipis": [],
"isnis": [],
"createdOnUtc": "2025-01-01T12:00:00.0000000Z",
"updatedOnUtc": null,
"contributors": [
{ "contributorId": "6a3f0c2d-1b4e-4f5a-8c6d-9e0f1a2b3c4d", "role": "Vocals" },
{ "contributorId": "7b4e1d3f-2c5a-4e6b-9d7e-0f1a2b3c4d5e", "role": "Guitar" }
],
"albums": [],
"createdOnUtc": "2025-01-01T12:00:00.0000000Z",
"updatedOnUtc": null
"ratings": [
{
"value": 4.5,
"maxValue": 5,
"source": "MusicBrainz",
"voteCount": 2345
}
],
"albums": []
}
```
@@ -610,13 +833,61 @@ PUT api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/{artistId}
```json
{
"name": "Queen",
"metadata": {
"name": "Queen",
"sortName": "Queen",
"disambiguation": null,
"type": "Group",
"gender": null,
"country": "GB",
"area": {
"musicBrainzAreaId": "7f2a1b3c-4d5e-4f6a-8b9c-0d1e2f3a4b5c",
"name": "United Kingdom",
"sortName": "United Kingdom",
"disambiguation": null,
"type": "Country",
"iso3166Code": "GB"
},
"beginArea": null,
"endArea": null,
"lifeSpanBegin": "1970-06-27",
"lifeSpanEnd": null,
"isEnded": false,
"genres": [
{ "name": "Rock" }
],
"tags": [
{ "name": "classic" }
],
"aliases": [
{
"name": "Queen",
"sortName": "Queen",
"type": "Artist name",
"locale": "en",
"isPrimary": true,
"beginDate": "1970-06-27",
"endDate": null,
"isEnded": false
}
]
},
"website": "https://www.queenonline.com",
"musicBrainzArtistId": "6f9c0b2a-1d3e-4a5b-8c7d-9e0f1a2b3c4d",
"ipis": [],
"isnis": [],
"contributors": [
{ "contributorId": "6a3f0c2d-1b4e-4f5a-8c6d-9e0f1a2b3c4d", "role": "Vocals" },
{ "contributorId": "7b4e1d3f-2c5a-4e6b-9d7e-0f1a2b3c4d5e", "role": "Guitar" }
],
"ratings": [
{
"value": 4.5,
"maxValue": 5,
"source": "MusicBrainz",
"voteCount": 2345
}
],
"albums": [
{
"albumId": "e8d52f7b-0a3c-4c2d-ab4f-8a7b6c5d4e3f",
@@ -624,6 +895,7 @@ PUT api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/{artistId}
"title": "A Night at the Opera",
"originalTitle": "A Night at the Opera",
"description": "The fourth studio album by the British rock band Queen, released in 1975. It was the most expensive album ever recorded at the time of its release.",
"disambiguation": null,
"releaseInfo": {
"originalReleaseDate": "1975-11-21",
"originalReleaseYear": 1975,
@@ -650,14 +922,19 @@ PUT api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/{artistId}
{ "name": "Rock" },
{ "name": "Progressive Rock" }
],
"releaseType": "Album",
"script": "Latn",
"releaseTypes": [ "Album" ],
"releaseStatus": "Official",
"totalDiscs": 1,
"totalTracks": 12
"totalTracks": 12,
"releaseTitle": "A Night at the Opera"
},
"mediaFormat": "CD",
"packaging": "JewelCase",
"barcode": "0042282778329",
"catalogNumber": "EMC 4008",
"catalogNumbers": ["EMC 4008"],
"label": "EMI",
"asin": "B000000000",
"musicBrainzReleaseId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"musicBrainzReleaseGroupId": "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e",
"musicBrainzReleaseArtistId": "c3d4e5f6-a7b8-4c9d-0e1f-2a3b4c5d6e7f",
@@ -687,6 +964,7 @@ PUT api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/{artistId}
"title": "Bohemian Rhapsody",
"originalTitle": "Bohemian Rhapsody",
"description": "A song by the British rock band Queen. It was written by Freddie Mercury and originally released on the album A Night at the Opera in 1975.",
"disambiguation": null,
"releaseInfo": {
"originalReleaseDate": "1975-10-31",
"originalReleaseYear": 1975,
@@ -713,22 +991,35 @@ PUT api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/{artistId}
{ "name": "Rock" },
{ "name": "Progressive Rock" }
],
"isVideo": false,
"durationInSeconds": 354,
"sampleRate": 44100,
"channels": 2,
"bitDepth": 16,
"audioCodec": "FLAC",
"bitrate": 980
"bitrate": 980,
"acoustId": "f0e1d2c3-b4a5-4c6d-8e7f-9a0b1c2d3e4f",
"replayGainTrackGain": -7.5,
"replayGainTrackPeak": 0.9877,
"replayGainAlbumGain": -6.8,
"replayGainAlbumPeak": 0.9999
},
"trackNumber": 1,
"discNumber": 1,
"script": "Latn",
"key": "CMajor",
"bpm": 72,
"work": "Bohemian Rhapsody",
"work": {
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
"title": "Bohemian Rhapsody",
"type": "Song",
"languages": [
{ "languageCode": "en", "languageName": "English", "nativeName": "English" }
],
"iswcs": []
},
"musicBrainzRecordingId": "d4e5f6a7-b8c9-4d0e-1f2a-3b4c5d6e7f8a",
"musicBrainzTrackId": "e5f6a7b8-c9d0-4e1f-2a3b-4c5d6e7f8a9b",
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
"moods": [
{ "name": "dramatic" },
{ "name": "anxious" }
@@ -762,6 +1053,7 @@ PUT api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/{artistId}
"title": "You're My Best Friend",
"originalTitle": "You're My Best Friend",
"description": "A song by the British rock band Queen, written by bass guitarist John Deacon. It was originally released on the album A Night at the Opera in 1975 and as a single in 1976.",
"disambiguation": null,
"releaseInfo": {
"originalReleaseDate": "1976-06-18",
"originalReleaseYear": 1976,
@@ -788,22 +1080,35 @@ PUT api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/{artistId}
{ "name": "Rock" },
{ "name": "Pop Rock" }
],
"isVideo": false,
"durationInSeconds": 181,
"sampleRate": 44100,
"channels": 2,
"bitDepth": 16,
"audioCodec": "FLAC",
"bitrate": 912
"bitrate": 912,
"acoustId": null,
"replayGainTrackGain": null,
"replayGainTrackPeak": null,
"replayGainAlbumGain": null,
"replayGainAlbumPeak": null
},
"trackNumber": 7,
"discNumber": 1,
"script": "Latn",
"key": "BMajor",
"bpm": 118,
"work": "You're My Best Friend",
"work": {
"musicBrainzWorkId": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
"title": "You're My Best Friend",
"type": "Song",
"languages": [
{ "languageCode": "en", "languageName": "English", "nativeName": "English" }
],
"iswcs": []
},
"musicBrainzRecordingId": "0f3e4d5c-6b7a-4f8e-9d0c-1b2a3c4d5e6f",
"musicBrainzTrackId": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"musicBrainzWorkId": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
"moods": [
{ "name": "happy" },
{ "name": "warm" }
@@ -846,13 +1151,63 @@ PUT api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/{artistId}
{
"id": "d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a",
"libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a",
"name": "Queen",
"metadata": {
"name": "Queen",
"sortName": "Queen",
"disambiguation": null,
"type": "Group",
"gender": null,
"country": "GB",
"area": {
"musicBrainzAreaId": "7f2a1b3c-4d5e-4f6a-8b9c-0d1e2f3a4b5c",
"name": "United Kingdom",
"sortName": "United Kingdom",
"disambiguation": null,
"type": "Country",
"iso3166Code": "GB"
},
"beginArea": null,
"endArea": null,
"lifeSpanBegin": "1970-06-27",
"lifeSpanEnd": null,
"isEnded": false,
"genres": [
{ "name": "Rock" }
],
"tags": [
{ "name": "classic" }
],
"aliases": [
{
"name": "Queen",
"sortName": "Queen",
"type": "Artist name",
"locale": "en",
"isPrimary": true,
"beginDate": "1970-06-27",
"endDate": null,
"isEnded": false
}
]
},
"website": "https://www.queenonline.com",
"musicBrainzArtistId": "6f9c0b2a-1d3e-4a5b-8c7d-9e0f1a2b3c4d",
"ipis": [],
"isnis": [],
"createdOnUtc": "2025-01-01T12:00:00.0000000Z",
"updatedOnUtc": "2025-02-01T12:00:00.0000000Z",
"contributors": [
{ "contributorId": "6a3f0c2d-1b4e-4f5a-8c6d-9e0f1a2b3c4d", "role": "Vocals" },
{ "contributorId": "7b4e1d3f-2c5a-4e6b-9d7e-0f1a2b3c4d5e", "role": "Guitar" }
],
"ratings": [
{
"value": 4.5,
"maxValue": 5,
"source": "MusicBrainz",
"voteCount": 2345
}
],
"albums": [
{
"id": "e8d52f7b-0a3c-4c2d-ab4f-8a7b6c5d4e3f",
@@ -862,10 +1217,7 @@ PUT api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/{artistId}
"title": "A Night at the Opera",
"originalTitle": "A Night at the Opera",
"description": "The fourth studio album by the British rock band Queen, released in 1975. It was the most expensive album ever recorded at the time of its release.",
"releaseType": "Album",
"releaseStatus": "Official",
"totalDiscs": 1,
"totalTracks": 12,
"disambiguation": null,
"releaseInfo": {
"originalReleaseDate": "1975-11-21",
"originalReleaseYear": 1975,
@@ -884,26 +1236,27 @@ PUT api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/{artistId}
"languageName": "English",
"nativeName": "English"
},
"genres": [
{
"name": "Rock"
},
{
"name": "Progressive Rock"
}
],
"tags": [
{
"name": "classic"
},
{
"name": "vinyl"
}
]
{ "name": "classic" },
{ "name": "vinyl" }
],
"genres": [
{ "name": "Rock" },
{ "name": "Progressive Rock" }
],
"script": "Latn",
"releaseTypes": [ "Album" ],
"releaseStatus": "Official",
"totalDiscs": 1,
"totalTracks": 12,
"releaseTitle": "A Night at the Opera"
},
"mediaFormat": "CD",
"packaging": "JewelCase",
"barcode": "0042282778329",
"catalogNumber": "EMC 4008",
"catalogNumbers": ["EMC 4008"],
"label": "EMI",
"asin": "B000000000",
"musicBrainzReleaseId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"musicBrainzReleaseGroupId": "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e",
"musicBrainzReleaseArtistId": "c3d4e5f6-a7b8-4c9d-0e1f-2a3b4c5d6e7f",
@@ -943,27 +1296,41 @@ PUT api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/{artistId}
"title": "Bohemian Rhapsody",
"originalTitle": "Bohemian Rhapsody",
"description": "A song by the British rock band Queen. It was written by Freddie Mercury and originally released on the album A Night at the Opera in 1975.",
"disambiguation": null,
"releaseInfo": { "originalReleaseDate": "1975-10-31", "originalReleaseYear": 1975, "reReleaseDate": null, "reReleaseYear": null, "releaseCountry": "GB", "releaseVersion": "Original" },
"language": { "languageCode": "en", "languageName": "English", "nativeName": "English" },
"originalLanguage": { "languageCode": "en", "languageName": "English", "nativeName": "English" },
"tags": [ { "name": "classic" }, { "name": "epic" } ],
"genres": [ { "name": "Rock" }, { "name": "Progressive Rock" } ],
"isVideo": false,
"durationInSeconds": 354,
"sampleRate": 44100,
"channels": 2,
"bitDepth": 16,
"audioCodec": "FLAC",
"bitrate": 980
"bitrate": 980,
"acoustId": "f0e1d2c3-b4a5-4c6d-8e7f-9a0b1c2d3e4f",
"replayGainTrackGain": -7.5,
"replayGainTrackPeak": 0.9877,
"replayGainAlbumGain": -6.8,
"replayGainAlbumPeak": 0.9999
},
"trackNumber": 1,
"discNumber": 1,
"script": "Latn",
"key": "CMajor",
"bpm": 72,
"work": "Bohemian Rhapsody",
"work": {
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
"title": "Bohemian Rhapsody",
"type": "Song",
"languages": [
{ "languageCode": "en", "languageName": "English", "nativeName": "English" }
],
"iswcs": []
},
"musicBrainzRecordingId": "d4e5f6a7-b8c9-4d0e-1f2a-3b4c5d6e7f8a",
"musicBrainzTrackId": "e5f6a7b8-c9d0-4e1f-2a3b-4c5d6e7f8a9b",
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
"createdOnUtc": "2025-01-01T12:00:00.0000000Z",
"updatedOnUtc": null,
"moods": [
@@ -1007,27 +1374,41 @@ PUT api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/{artistId}
"title": "You're My Best Friend",
"originalTitle": "You're My Best Friend",
"description": "A song by the British rock band Queen, written by bass guitarist John Deacon. It was originally released on the album A Night at the Opera in 1975 and as a single in 1976.",
"disambiguation": null,
"releaseInfo": { "originalReleaseDate": "1976-06-18", "originalReleaseYear": 1976, "reReleaseDate": null, "reReleaseYear": null, "releaseCountry": "GB", "releaseVersion": "Original" },
"language": { "languageCode": "en", "languageName": "English", "nativeName": "English" },
"originalLanguage": { "languageCode": "en", "languageName": "English", "nativeName": "English" },
"tags": [ { "name": "classic" }, { "name": "love" } ],
"genres": [ { "name": "Rock" }, { "name": "Pop Rock" } ],
"isVideo": false,
"durationInSeconds": 181,
"sampleRate": 44100,
"channels": 2,
"bitDepth": 16,
"audioCodec": "FLAC",
"bitrate": 912
"bitrate": 912,
"acoustId": null,
"replayGainTrackGain": null,
"replayGainTrackPeak": null,
"replayGainAlbumGain": null,
"replayGainAlbumPeak": null
},
"trackNumber": 7,
"discNumber": 1,
"script": "Latn",
"key": "BMajor",
"bpm": 118,
"work": "You're My Best Friend",
"work": {
"musicBrainzWorkId": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
"title": "You're My Best Friend",
"type": "Song",
"languages": [
{ "languageCode": "en", "languageName": "English", "nativeName": "English" }
],
"iswcs": []
},
"musicBrainzRecordingId": "0f3e4d5c-6b7a-4f8e-9d0c-1b2a3c4d5e6f",
"musicBrainzTrackId": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"musicBrainzWorkId": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
"createdOnUtc": "2025-01-01T12:00:00.0000000Z",
"updatedOnUtc": null,
"moods": [
@@ -1064,9 +1445,7 @@ PUT api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/{artistId}
}
]
}
],
"createdOnUtc": "2025-01-01T12:00:00.0000000Z",
"updatedOnUtc": "2025-02-01T12:00:00.0000000Z"
]
}
```
@@ -1082,4 +1461,3 @@ DELETE api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/{artistId}
```
Deletes the artist identified by the route, together with its albums and tracks.
@@ -30,12 +30,7 @@ POST api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b
"title": "Bohemian Rhapsody",
"originalTitle": "Bohemian Rhapsody",
"description": "A song by the British rock band Queen. It was written by Freddie Mercury and originally released on the album A Night at the Opera in 1975.",
"durationInSeconds": 354,
"sampleRate": 44100,
"channels": 2,
"bitDepth": 16,
"audioCodec": "FLAC",
"bitrate": 980,
"disambiguation": null,
"releaseInfo": {
"originalReleaseDate": "1975-10-31",
"originalReleaseYear": 1975,
@@ -54,24 +49,43 @@ POST api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b
"languageName": "English",
"nativeName": "English"
},
"tags": [
{ "name": "classic" },
{ "name": "epic" }
],
"genres": [
{ "name": "Rock" },
{ "name": "Progressive Rock" }
],
"tags": [
{ "name": "classic" },
{ "name": "epic" }
]
"isVideo": false,
"durationInSeconds": 354,
"sampleRate": 44100,
"channels": 2,
"bitDepth": 16,
"audioCodec": "FLAC",
"bitrate": 980,
"acoustId": "f0e1d2c3-b4a5-4c6d-8e7f-9a0b1c2d3e4f",
"replayGainTrackGain": -7.5,
"replayGainTrackPeak": 0.9877,
"replayGainAlbumGain": -6.8,
"replayGainAlbumPeak": 0.9999
},
"trackNumber": 1,
"discNumber": 1,
"script": "Latn",
"key": "CMajor",
"bpm": 72,
"work": "Bohemian Rhapsody",
"work": {
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
"title": "Bohemian Rhapsody",
"type": "Song",
"languages": [
{ "languageCode": "en", "languageName": "English", "nativeName": "English" }
],
"iswcs": []
},
"musicBrainzRecordingId": "d4e5f6a7-b8c9-4d0e-1f2a-3b4c5d6e7f8a",
"musicBrainzTrackId": "e5f6a7b8-c9d0-4e1f-2a3b-4c5d6e7f8a9b",
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
"moods": [
{ "name": "dramatic" },
{ "name": "anxious" }
@@ -116,27 +130,41 @@ POST api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b
"title": "Bohemian Rhapsody",
"originalTitle": "Bohemian Rhapsody",
"description": "A song by the British rock band Queen. It was written by Freddie Mercury and originally released on the album A Night at the Opera in 1975.",
"disambiguation": null,
"releaseInfo": { "originalReleaseDate": "1975-10-31", "originalReleaseYear": 1975, "reReleaseDate": null, "reReleaseYear": null, "releaseCountry": "GB", "releaseVersion": "Original" },
"language": { "languageCode": "en", "languageName": "English", "nativeName": "English" },
"originalLanguage": { "languageCode": "en", "languageName": "English", "nativeName": "English" },
"tags": [ { "name": "classic" }, { "name": "epic" } ],
"genres": [ { "name": "Rock" }, { "name": "Progressive Rock" } ],
"isVideo": false,
"durationInSeconds": 354,
"sampleRate": 44100,
"channels": 2,
"bitDepth": 16,
"audioCodec": "FLAC",
"bitrate": 980
"bitrate": 980,
"acoustId": "f0e1d2c3-b4a5-4c6d-8e7f-9a0b1c2d3e4f",
"replayGainTrackGain": -7.5,
"replayGainTrackPeak": 0.9877,
"replayGainAlbumGain": -6.8,
"replayGainAlbumPeak": 0.9999
},
"trackNumber": 1,
"discNumber": 1,
"script": "Latn",
"key": "CMajor",
"bpm": 72,
"work": "Bohemian Rhapsody",
"work": {
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
"title": "Bohemian Rhapsody",
"type": "Song",
"languages": [
{ "languageCode": "en", "languageName": "English", "nativeName": "English" }
],
"iswcs": []
},
"musicBrainzRecordingId": "d4e5f6a7-b8c9-4d0e-1f2a-3b4c5d6e7f8a",
"musicBrainzTrackId": "e5f6a7b8-c9d0-4e1f-2a3b-4c5d6e7f8a9b",
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
"createdOnUtc": "2025-01-01T12:00:00.0000000Z",
"updatedOnUtc": null,
"moods": [
@@ -204,27 +232,41 @@ GET api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b-
"title": "Bohemian Rhapsody",
"originalTitle": "Bohemian Rhapsody",
"description": "A song by the British rock band Queen. It was written by Freddie Mercury and originally released on the album A Night at the Opera in 1975.",
"disambiguation": null,
"releaseInfo": { "originalReleaseDate": "1975-10-31", "originalReleaseYear": 1975, "reReleaseDate": null, "reReleaseYear": null, "releaseCountry": "GB", "releaseVersion": "Original" },
"language": { "languageCode": "en", "languageName": "English", "nativeName": "English" },
"originalLanguage": { "languageCode": "en", "languageName": "English", "nativeName": "English" },
"tags": [ { "name": "classic" }, { "name": "epic" } ],
"genres": [ { "name": "Rock" }, { "name": "Progressive Rock" } ],
"isVideo": false,
"durationInSeconds": 354,
"sampleRate": 44100,
"channels": 2,
"bitDepth": 16,
"audioCodec": "FLAC",
"bitrate": 980
"bitrate": 980,
"acoustId": "f0e1d2c3-b4a5-4c6d-8e7f-9a0b1c2d3e4f",
"replayGainTrackGain": -7.5,
"replayGainTrackPeak": 0.9877,
"replayGainAlbumGain": -6.8,
"replayGainAlbumPeak": 0.9999
},
"trackNumber": 1,
"discNumber": 1,
"script": "Latn",
"key": "CMajor",
"bpm": 72,
"work": "Bohemian Rhapsody",
"work": {
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
"title": "Bohemian Rhapsody",
"type": "Song",
"languages": [
{ "languageCode": "en", "languageName": "English", "nativeName": "English" }
],
"iswcs": []
},
"musicBrainzRecordingId": "d4e5f6a7-b8c9-4d0e-1f2a-3b4c5d6e7f8a",
"musicBrainzTrackId": "e5f6a7b8-c9d0-4e1f-2a3b-4c5d6e7f8a9b",
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
"createdOnUtc": "2025-01-01T12:00:00.0000000Z",
"updatedOnUtc": null,
"moods": [
@@ -283,12 +325,7 @@ PUT api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b-
"title": "Bohemian Rhapsody",
"originalTitle": "Bohemian Rhapsody",
"description": "A song by the British rock band Queen. It was written by Freddie Mercury and originally released on the album A Night at the Opera in 1975.",
"durationInSeconds": 354,
"sampleRate": 44100,
"channels": 2,
"bitDepth": 16,
"audioCodec": "FLAC",
"bitrate": 980,
"disambiguation": null,
"releaseInfo": {
"originalReleaseDate": "1975-10-31",
"originalReleaseYear": 1975,
@@ -307,24 +344,43 @@ PUT api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b-
"languageName": "English",
"nativeName": "English"
},
"tags": [
{ "name": "classic" },
{ "name": "epic" }
],
"genres": [
{ "name": "Rock" },
{ "name": "Progressive Rock" }
],
"tags": [
{ "name": "classic" },
{ "name": "epic" }
]
"isVideo": false,
"durationInSeconds": 354,
"sampleRate": 44100,
"channels": 2,
"bitDepth": 16,
"audioCodec": "FLAC",
"bitrate": 980,
"acoustId": "f0e1d2c3-b4a5-4c6d-8e7f-9a0b1c2d3e4f",
"replayGainTrackGain": -7.5,
"replayGainTrackPeak": 0.9877,
"replayGainAlbumGain": -6.8,
"replayGainAlbumPeak": 0.9999
},
"trackNumber": 1,
"discNumber": 1,
"script": "Latn",
"key": "CMajor",
"bpm": 72,
"work": "Bohemian Rhapsody",
"work": {
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
"title": "Bohemian Rhapsody",
"type": "Song",
"languages": [
{ "languageCode": "en", "languageName": "English", "nativeName": "English" }
],
"iswcs": []
},
"musicBrainzRecordingId": "d4e5f6a7-b8c9-4d0e-1f2a-3b4c5d6e7f8a",
"musicBrainzTrackId": "e5f6a7b8-c9d0-4e1f-2a3b-4c5d6e7f8a9b",
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
"moods": [
{ "name": "dramatic" },
{ "name": "anxious" }
@@ -369,27 +425,41 @@ PUT api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b-
"title": "Bohemian Rhapsody",
"originalTitle": "Bohemian Rhapsody",
"description": "A song by the British rock band Queen. It was written by Freddie Mercury and originally released on the album A Night at the Opera in 1975.",
"disambiguation": null,
"releaseInfo": { "originalReleaseDate": "1975-10-31", "originalReleaseYear": 1975, "reReleaseDate": null, "reReleaseYear": null, "releaseCountry": "GB", "releaseVersion": "Original" },
"language": { "languageCode": "en", "languageName": "English", "nativeName": "English" },
"originalLanguage": { "languageCode": "en", "languageName": "English", "nativeName": "English" },
"tags": [ { "name": "classic" }, { "name": "epic" } ],
"genres": [ { "name": "Rock" }, { "name": "Progressive Rock" } ],
"isVideo": false,
"durationInSeconds": 354,
"sampleRate": 44100,
"channels": 2,
"bitDepth": 16,
"audioCodec": "FLAC",
"bitrate": 980
"bitrate": 980,
"acoustId": "f0e1d2c3-b4a5-4c6d-8e7f-9a0b1c2d3e4f",
"replayGainTrackGain": -7.5,
"replayGainTrackPeak": 0.9877,
"replayGainAlbumGain": -6.8,
"replayGainAlbumPeak": 0.9999
},
"trackNumber": 1,
"discNumber": 1,
"script": "Latn",
"key": "CMajor",
"bpm": 72,
"work": "Bohemian Rhapsody",
"work": {
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
"title": "Bohemian Rhapsody",
"type": "Song",
"languages": [
{ "languageCode": "en", "languageName": "English", "nativeName": "English" }
],
"iswcs": []
},
"musicBrainzRecordingId": "d4e5f6a7-b8c9-4d0e-1f2a-3b4c5d6e7f8a",
"musicBrainzTrackId": "e5f6a7b8-c9d0-4e1f-2a3b-4c5d6e7f8a9b",
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
"createdOnUtc": "2025-01-01T12:00:00.0000000Z",
"updatedOnUtc": null,
"moods": [
+163 -20
View File
@@ -23,12 +23,22 @@
- [Reorder Library Metadata Providers](#reorder-library-metadata-providers)
- [Reorder Library Metadata Providers Request](#reorder-library-metadata-providers-request)
- [Reorder Library Metadata Providers Response](#reorder-library-metadata-providers-response)
- [Get Library Artwork Providers](#get-library-artwork-providers)
- [Get Library Artwork Providers Request](#get-library-artwork-providers-request)
- [Get Library Artwork Providers Response](#get-library-artwork-providers-response)
- [Set Library Artwork Provider Enabled](#set-library-artwork-provider-enabled)
- [Set Library Artwork Provider Enabled Request](#set-library-artwork-provider-enabled-request)
- [Set Library Artwork Provider Enabled Response](#set-library-artwork-provider-enabled-response)
- [Reorder Library Artwork Providers](#reorder-library-artwork-providers)
- [Reorder Library Artwork Providers Request](#reorder-library-artwork-providers-request)
- [Reorder Library Artwork Providers Response](#reorder-library-artwork-providers-response)
- [Get Library Book Readers](#get-library-book-readers)
- [Get Library Book Readers Request](#get-library-book-readers-request)
- [Get Library Book Readers Response](#get-library-book-readers-response)
- [Set Library Book Reader Enabled](#set-library-book-reader-enabled)
- [Set Library Book Reader Enabled Request](#set-library-book-reader-enabled-request)
- [Set Library Book Reader Enabled Response](#set-library-book-reader-enabled-response)
- [Music Plugins](#music-plugins)
## Plugins
@@ -65,15 +75,20 @@ GET api/v1/plugins
```json
[
{
"id": "f0d1a2b3-4c5d-4e6f-8a7b-9c0d1e2f3a4b",
"name": "OpenLibrary",
"author": "Binary Alley",
"id": "f4c1a7de-3b52-4e6a-9d21-8c7e5b04a1f3",
"name": "MusicBrainz Metadata",
"author": "Lumina",
"version": "1.0.0",
"description": "Downloads book metadata from Open Library.",
"description": "Retrieves artist, album and track metadata from MusicBrainz.",
"loadStatus": "Loaded",
"loadError": null,
"settings": {
"language": "en"
"BaseUrl": "https://musicbrainz.org/ws/2/",
"DoesAllowPrivateBaseUrl": "false",
"ContactEmail": "",
"SearchResultLimit": "10",
"ReleaseLookupLimit": "25",
"MinimumRequestIntervalSeconds": "1.0"
}
}
]
@@ -93,28 +108,62 @@ GET api/v1/plugins/{pluginId}/settings
200 Ok
```
The `type` of a setting descriptor is one of `Text`, `Number`, `Boolean` or `Select`. A `Select` setting also carries the list of `allowedValues` it can take.
```json
{
"pluginId": "f0d1a2b3-4c5d-4e6f-8a7b-9c0d1e2f3a4b",
"pluginId": "f4c1a7de-3b52-4e6a-9d21-8c7e5b04a1f3",
"schema": [
{
"key": "language",
"label": "Language",
"key": "BaseUrl",
"label": "Base URL",
"type": "Text",
"defaultValue": "en",
"defaultValue": "https://musicbrainz.org/ws/2/",
"allowedValues": null
},
{
"key": "maxResults",
"label": "Maximum results",
"key": "DoesAllowPrivateBaseUrl",
"label": "Allow LAN/Private Base URL",
"type": "Boolean",
"defaultValue": "false",
"allowedValues": null
},
{
"key": "ContactEmail",
"label": "Contact Email",
"type": "Text",
"defaultValue": null,
"allowedValues": null
},
{
"key": "SearchResultLimit",
"label": "Search Result Limit",
"type": "Number",
"defaultValue": "10",
"allowedValues": null
},
{
"key": "ReleaseLookupLimit",
"label": "Release Lookup Limit",
"type": "Number",
"defaultValue": "25",
"allowedValues": null
},
{
"key": "MinimumRequestIntervalSeconds",
"label": "Minimum Request Interval (seconds)",
"type": "Number",
"defaultValue": "1.0",
"allowedValues": null
}
],
"settings": {
"language": "en",
"maxResults": "10"
"BaseUrl": "https://musicbrainz.org/ws/2/",
"DoesAllowPrivateBaseUrl": "false",
"ContactEmail": "",
"SearchResultLimit": "10",
"ReleaseLookupLimit": "25",
"MinimumRequestIntervalSeconds": "1.0"
}
}
```
@@ -129,10 +178,10 @@ PUT api/v1/plugins/{pluginId}/settings
```json
{
"pluginId": "f0d1a2b3-4c5d-4e6f-8a7b-9c0d1e2f3a4b",
"pluginId": "f4c1a7de-3b52-4e6a-9d21-8c7e5b04a1f3",
"settings": {
"language": "en",
"maxResults": "25"
"BaseUrl": "https://musicbrainz.org/ws/2/",
"SearchResultLimit": "25"
}
}
```
@@ -151,6 +200,8 @@ PUT api/v1/plugins/{pluginId}/settings
GET api/v1/libraries/{libraryId}/metadata-providers
```
Returns the metadata providers available for the media library, one entry per plugin that provides metadata, along with whether the provider is enabled for the media library and its rank, which determines the order in which the providers are tried.
#### Get Library Metadata Providers Response
```js
@@ -160,8 +211,8 @@ GET api/v1/libraries/{libraryId}/metadata-providers
```json
[
{
"pluginId": "f0d1a2b3-4c5d-4e6f-8a7b-9c0d1e2f3a4b",
"name": "OpenLibrary",
"pluginId": "f4c1a7de-3b52-4e6a-9d21-8c7e5b04a1f3",
"name": "MusicBrainz Metadata",
"isEnabled": true,
"rank": 1
}
@@ -179,7 +230,7 @@ PUT api/v1/libraries/{libraryId}/metadata-providers/{pluginId}/enabled
```json
{
"libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a",
"pluginId": "f0d1a2b3-4c5d-4e6f-8a7b-9c0d1e2f3a4b",
"pluginId": "f4c1a7de-3b52-4e6a-9d21-8c7e5b04a1f3",
"isEnabled": true
}
```
@@ -202,7 +253,7 @@ PUT api/v1/libraries/{libraryId}/metadata-providers/reorder
{
"libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a",
"pluginIds": [
"f0d1a2b3-4c5d-4e6f-8a7b-9c0d1e2f3a4b",
"f4c1a7de-3b52-4e6a-9d21-8c7e5b04a1f3",
"a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
]
}
@@ -214,6 +265,85 @@ PUT api/v1/libraries/{libraryId}/metadata-providers/reorder
200 Ok
```
### Get Library Artwork Providers
#### Get Library Artwork Providers Request
```js
GET api/v1/libraries/{libraryId}/artwork-providers
```
Returns the artwork providers available for the media library, one entry per plugin that provides artwork, along with whether the provider is enabled for the media library and its rank, which determines the order in which the providers are tried when resolving the artwork.
#### Get Library Artwork Providers Response
```js
200 Ok
```
```json
[
{
"pluginId": "c9f1a7d3-2b64-4e18-8f05-7a3d9c1b6e42",
"name": "Local Music Artwork",
"isEnabled": true,
"rank": 1
},
{
"pluginId": "b7e4c2a9-1f38-4d65-9a02-3e6b8f5c7d14",
"name": "Cover Art Archive",
"isEnabled": true,
"rank": 2
}
]
```
### Set Library Artwork Provider Enabled
#### Set Library Artwork Provider Enabled Request
```js
PUT api/v1/libraries/{libraryId}/artwork-providers/{pluginId}/enabled
```
```json
{
"libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a",
"pluginId": "b7e4c2a9-1f38-4d65-9a02-3e6b8f5c7d14",
"isEnabled": true
}
```
#### Set Library Artwork Provider Enabled Response
```js
200 Ok
```
### Reorder Library Artwork Providers
#### Reorder Library Artwork Providers Request
```js
PUT api/v1/libraries/{libraryId}/artwork-providers/reorder
```
```json
{
"libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a",
"pluginIds": [
"c9f1a7d3-2b64-4e18-8f05-7a3d9c1b6e42",
"b7e4c2a9-1f38-4d65-9a02-3e6b8f5c7d14"
]
}
```
#### Reorder Library Artwork Providers Response
```js
200 Ok
```
### Get Library Book Readers
#### Get Library Book Readers Request
@@ -272,3 +402,16 @@ PUT api/v1/libraries/{libraryId}/book-readers/{pluginId}/enabled
```js
200 Ok
```
## Music Plugins
The music media library type is served by four plugins, which register their capabilities through `IPluginServiceRegistrator`. A single plugin can expose more than one capability, and the capabilities are enabled and ranked per media library through the endpoints above.
| Plugin | Capability | Web access | Description |
| --- | --- | --- | --- |
| `MusicBrainz Metadata` | Metadata provider (artist, album, track) | Yes | Retrieves artist, album and track metadata from MusicBrainz. |
| `ID3 Metadata` | Metadata provider (artist, album, track) | No | Populates artist, album and track metadata from the embedded tags of the audio files. |
| `Local Music Artwork` | Artwork provider (artist, album) | No | Reads the artwork of the artists and the albums from the images stored in the folders of a local music library, and can extract the embedded album cover from the audio files. |
| `Cover Art Archive` | Artwork provider (album) | Yes | Retrieves the cover, back, booklet, medium and other artwork of music albums from the Cover Art Archive. |
The metadata providers are resolved during the metadata enrichment phase of a scan, and the artwork providers during the artwork enrichment phase, in the order given by their rank.
@@ -39,13 +39,25 @@ end note
interface IBooksFileSystemDiscoveryJob {
}
interface IMusicFileSystemDiscoveryJob {
}
interface IMusicMetadataExtractionJob {
}
interface IMediaLibraryScanDiffJob {
}
interface IMediaLibraryScanHashJob {
}
interface IGoodReadsMetadataScrapJob {
interface IMediaLibraryScanProviderConfigurationInvalidationJob {
}
interface IMediaLibraryScanMetadataEnrichmentJob {
}
interface IMediaLibraryScanArtworkEnrichmentJob {
}
interface IMediaLibraryScanResultsSaveJob {
@@ -56,6 +68,16 @@ class BooksFileSystemDiscoveryJob {
+ ExecuteAsync<TInput>(id: Guid, input: TInput, token: CancellationToken): Task
}
class MusicFileSystemDiscoveryJob {
- STAGING_BATCH_SIZE: int = 1000
+ ExecuteAsync<TInput>(id: Guid, input: TInput, token: CancellationToken): Task
}
class MusicMetadataExtractionJob {
- EXTRACTION_BATCH_SIZE: int = 1000
+ ExecuteAsync<TInput>(id: Guid, input: TInput, token: CancellationToken): Task
}
class MediaLibraryScanDiffJob {
+ ExecuteAsync<TInput>(id: Guid, input: TInput, token: CancellationToken): Task
}
@@ -65,8 +87,15 @@ class MediaLibraryScanHashJob {
+ ExecuteAsync<TInput>(id: Guid, input: TInput, token: CancellationToken): Task
}
class GoodReadsMetadataScrapJob {
- ENRICHMENT_PAGE_SIZE: int = 1000
class MediaLibraryScanProviderConfigurationInvalidationJob {
+ ExecuteAsync<TInput>(id: Guid, input: TInput, token: CancellationToken): Task
}
class MediaLibraryScanMetadataEnrichmentJob {
+ ExecuteAsync<TInput>(id: Guid, input: TInput, token: CancellationToken): Task
}
class MediaLibraryScanArtworkEnrichmentJob {
+ ExecuteAsync<TInput>(id: Guid, input: TInput, token: CancellationToken): Task
}
@@ -94,8 +123,8 @@ end note
note right of MediaLibraryScanResultsSaveJob
Persists the results of the current scan and swaps the scan
snapshot in a single transaction. Always the last job in the
directed acyclic job graph.
snapshot in a single transaction, then triggers the provider
configuration invalidation job.
end note
class ScanFailurePublisher {
@@ -108,30 +137,6 @@ note top of ScanFailurePublisher
releases its processing resources (see ADR-0009).
end note
' ============================== HOOKS AND REGISTRY ==============================
class ScanJobHooks {
+ AFTER_FILE_SYSTEM_DISCOVERY: string
+ AFTER_SCAN_DIFF: string
+ BEFORE_METADATA_ENRICHMENT: string
+ AFTER_METADATA_ENRICHMENT: string
+ BEFORE_SCAN_RESULTS_SAVE: string
}
note bottom of ScanJobHooks
Named junction points of the scan job graph where plugin
jobs can be injected (see ADR-0008).
end note
interface IScanJobRegistry {
+ GetJobsForHook(hookName: string, libraryId: LibraryId): IEnumerable<IMediaLibraryScanJob>
}
class ScanJobRegistry {
- _jobsByHook: IReadOnlyDictionary<string, IReadOnlyList<Type>>
+ GetJobsForHook(hookName: string, libraryId: LibraryId): IEnumerable<IMediaLibraryScanJob>
}
' ============================== FACTORIES AND SCANNERS ==============================
interface IMediaLibraryScanJobFactory {
@@ -151,25 +156,103 @@ class MediaLibraryScannerFactory {
}
interface IMediaTypeScanner {
+ SupportedType: LibraryType
+ CreateScanJobsForLibrary(libraryId: LibraryId, downloadMetadataFromWeb: bool): IEnumerable<IMediaLibraryScanJob>
+ SupportedLibraryType: LibraryType
+ CreateScanJobsForLibrary(libraryId: LibraryId): IEnumerable<IMediaLibraryScanJob>
}
interface IBookLibraryTypeScanner {
}
interface IMusicLibraryTypeScanner {
}
class BookLibraryTypeScanner {
- _mediaScanJobFactory: IMediaLibraryScanJobFactory
- _scanJobRegistry: IScanJobRegistry
+ SupportedType: LibraryType
+ CreateScanJobsForLibrary(libraryId: LibraryId, downloadMetadataFromWeb: bool): IEnumerable<IMediaLibraryScanJob>
+ SupportedLibraryType: LibraryType
+ CreateScanJobsForLibrary(libraryId: LibraryId): IEnumerable<IMediaLibraryScanJob>
}
class MusicLibraryTypeScanner {
- _mediaScanJobFactory: IMediaLibraryScanJobFactory
+ SupportedLibraryType: LibraryType
+ CreateScanJobsForLibrary(libraryId: LibraryId): IEnumerable<IMediaLibraryScanJob>
}
' ============================== MEDIA TYPE STRATEGIES ==============================
interface IMediaLibraryScanItemMaterializer {
+ SupportedLibraryType: LibraryType
+ ResetEnrichmentStateForChangedPathsAsync(unitOfWork: IUnitOfWork, libraryId: Guid, paths: IReadOnlyCollection<string>, token: CancellationToken): Task<Result<Updated>>
+ MaterializeItemsAsync(unitOfWork: IUnitOfWork, libraryId: Guid, scanId: Guid, paths: IReadOnlyList<string>, token: CancellationToken): Task<Result<Success>>
+ ResetMetadataStatusForLibraryAsync(unitOfWork: IUnitOfWork, libraryId: Guid, token: CancellationToken): Task<Result<Updated>>
+ ResetArtworkStatusForLibraryAsync(unitOfWork: IUnitOfWork, libraryId: Guid, token: CancellationToken): Task<Result<Updated>>
}
interface IMediaLibraryScanMetadataEnricher {
+ SupportedLibraryType: LibraryType
+ EnrichAsync(libraryId: LibraryId, scanId: ScanId, userId: UserId, token: CancellationToken): Task
}
interface IMediaLibraryScanArtworkEnricher {
+ SupportedLibraryType: LibraryType
+ EnrichAsync(libraryId: LibraryId, scanId: ScanId, userId: UserId, token: CancellationToken): Task
}
class BooksMediaLibraryScanItemMaterializer {
}
class MusicMediaLibraryScanItemMaterializer {
}
class BooksMediaLibraryScanMetadataEnricher {
- ENRICHMENT_PAGE_SIZE: int = 1000
}
class MusicMediaLibraryScanMetadataEnricher {
- ENRICHMENT_PAGE_SIZE: int = 200
}
class BooksMediaLibraryScanArtworkEnricher {
- ENRICHMENT_PAGE_SIZE: int = 1000
}
class MusicMediaLibraryScanArtworkEnricher {
- ENRICHMENT_PAGE_SIZE: int = 200
}
note top of BookLibraryTypeScanner
Builds the books scan job graph: file system discovery,
scan diff, hashing, optional GoodReads metadata enrichment
and scan results save, splicing the plugin jobs registered
at the ScanJobHooks hook points (see ADR-0008).
scan diff, hashing, scan results save, provider configuration
invalidation, metadata enrichment and artwork enrichment.
end note
' ============================== PATH TEMPLATE ==============================
interface ILibraryPathTemplateService {
+ GetDefaultTemplate(libraryType: LibraryType): LibraryPathTemplate
+ ResolveTemplate(libraryType: LibraryType, providedParts: IReadOnlyList<LibraryPathPart>): Result<LibraryPathTemplate>
+ Validate(libraryType: LibraryType, template: LibraryPathTemplate): Result<Success>
+ Parse(libraryType: LibraryType, template: LibraryPathTemplate, relativePath: string, pathSeparator: char): Result<Optional<ParsedLibraryPath>>
}
class LibraryPathTemplateService {
}
interface ILibraryPathPartCatalog {
+ SupportedLibraryType: LibraryType
+ GetPartDefinitions(): IReadOnlyList<LibraryPathPartDefinition>
+ GetDefaultTemplate(): LibraryPathTemplate
}
class MusicLibraryPathPartCatalog {
}
class BookLibraryPathPartCatalog {
}
note bottom of ILibraryPathTemplateService
Validates media library path templates and derives item
metadata from paths, using the catalog of each library type.
end note
' ============================== SCAN ORCHESTRATION ==============================
@@ -179,12 +262,12 @@ class LibraryScan {
+ LibraryId: LibraryId
+ UserId: UserId
+ Status: LibraryScanJobStatus
+ {static} Create(libraryId: LibraryId, userId: UserId, pastScans: List<LibraryScan>): ErrorOr<LibraryScan>
+ QueueScan(): ErrorOr<Success>
+ StartScan(): ErrorOr<Success>
+ FinishScan(): ErrorOr<Success>
+ CancelScan(): ErrorOr<Success>
+ FailScan(): ErrorOr<Success>
+ {static} Create(libraryId: LibraryId, userId: UserId, pastScans: List<LibraryScan>): Result<LibraryScan>
+ QueueScan(): Result<Success>
+ StartScan(): Result<Success>
+ FinishScan(): Result<Success>
+ CancelScan(): Result<Success>
+ FailScan(): Result<Success>
}
note right of LibraryScan
@@ -193,8 +276,8 @@ note right of LibraryScan
end note
interface IMediaLibraryScanningService {
+ StartScanAsync(scan: LibraryScan, libraryType: LibraryType, downloadMetadataFromWeb: bool, token: CancellationToken): Task<ErrorOr<Success>>
+ CancelScan(scan: LibraryScan): ErrorOr<Success>
+ StartScanAsync(scan: LibraryScan, libraryType: LibraryType, token: CancellationToken): Task<Result<Success>>
+ CancelScan(scan: LibraryScan): Result<Success>
}
class MediaLibraryScanningService {
@@ -202,9 +285,9 @@ class MediaLibraryScanningService {
- _mediaLibraryScannerFactory: IMediaLibraryScannerFactory
- _mediaLibrariesScanCancellationTracker: IMediaLibrariesScanCancellationTracker
- _mediaLibrariesScanProgressTracker: IMediaLibrariesScanProgressTracker
- _publisher: IPublisher
+ StartScanAsync(scan: LibraryScan, libraryType: LibraryType, downloadMetadataFromWeb: bool, token: CancellationToken): Task<ErrorOr<Success>>
+ CancelScan(scan: LibraryScan): ErrorOr<Success>
- _domainEventPublisher: IDomainEventPublisher
+ StartScanAsync(scan: LibraryScan, libraryType: LibraryType, token: CancellationToken): Task<Result<Success>>
+ CancelScan(scan: LibraryScan): Result<Success>
}
note top of MediaLibraryScanningService
@@ -259,11 +342,11 @@ class MediaLibrariesScanCancellationTracker {
}
interface IMediaLibrariesScanProgressTracker {
+ InitializeScanProgress(libraryId: LibraryId, compositeKey: MediaLibraryScanCompositeId, totalJobs: int): ErrorOr<Created>
+ UpdateScanProgress(libraryId: LibraryId, compositeKey: MediaLibraryScanCompositeId): ErrorOr<Updated>
+ UpdateScanJobProgress(libraryId: LibraryId, compositeKey: MediaLibraryScanCompositeId, progress: MediaLibraryScanJobProgress): ErrorOr<Updated>
+ GetScanProgress(compositeKey: MediaLibraryScanCompositeId): ErrorOr<MediaLibraryScanProgress>
+ RemoveScanProgress(compositeKey: MediaLibraryScanCompositeId): ErrorOr<MediaLibraryScanProgress>
+ InitializeScanProgress(libraryId: LibraryId, compositeKey: MediaLibraryScanCompositeId, totalJobs: int): Result<Created>
+ UpdateScanProgress(libraryId: LibraryId, compositeKey: MediaLibraryScanCompositeId): Result<Updated>
+ UpdateScanJobProgress(libraryId: LibraryId, compositeKey: MediaLibraryScanCompositeId, progress: MediaLibraryScanJobProgress): Result<Updated>
+ GetScanProgress(compositeKey: MediaLibraryScanCompositeId): Result<MediaLibraryScanProgress>
+ RemoveScanProgress(compositeKey: MediaLibraryScanCompositeId): Result<MediaLibraryScanProgress>
}
class MediaLibrariesScanProgressTracker {
@@ -285,7 +368,7 @@ class DebouncedMediaLibraryScanProgressNotifier {
}
class MediaLibraryScanProgressHub {
+ SubscribeToScan(scanId: Guid, userId: Guid): Task
+ SubscribeToScan(scanId: Guid): Task
}
note top of MediaLibraryScanProgressHub
@@ -296,31 +379,31 @@ end note
' ============================== DOMAIN EVENT HANDLERS ==============================
class LibraryScanQueuedDomainEventHandler {
+ Handle(domainEvent: LibraryScanQueuedDomainEvent, token: CancellationToken): ValueTask
+ HandleAsync(domainEvent: LibraryScanQueuedDomainEvent, token: CancellationToken): ValueTask
}
class LibraryScanStartedDomainEventHandler {
+ Handle(domainEvent: LibraryScanStartedDomainEvent, token: CancellationToken): ValueTask
+ HandleAsync(domainEvent: LibraryScanStartedDomainEvent, token: CancellationToken): ValueTask
}
class LibraryScanFinishedDomainEventHandler {
+ Handle(domainEvent: LibraryScanFinishedDomainEvent, token: CancellationToken): ValueTask
+ HandleAsync(domainEvent: LibraryScanFinishedDomainEvent, token: CancellationToken): ValueTask
}
class LibraryScanFailedDomainEventHandler {
+ Handle(domainEvent: LibraryScanFailedDomainEvent, token: CancellationToken): ValueTask
+ HandleAsync(domainEvent: LibraryScanFailedDomainEvent, token: CancellationToken): ValueTask
}
class LibraryScanCancelledDomainEventHandler {
+ Handle(domainEvent: LibraryScanCancelledDomainEvent, token: CancellationToken): ValueTask
+ HandleAsync(domainEvent: LibraryScanCancelledDomainEvent, token: CancellationToken): ValueTask
}
class LibraryScanProgressChangedDomainEventHandler {
+ Handle(domainEvent: LibraryScanProgressChangedDomainEvent, token: CancellationToken): ValueTask
+ HandleAsync(domainEvent: LibraryScanProgressChangedDomainEvent, token: CancellationToken): ValueTask
}
class LibraryScanJobProgressChangedDomainEventHandler {
+ Handle(domainEvent: LibraryScanJobProgressChangedDomainEvent, token: CancellationToken): ValueTask
+ HandleAsync(domainEvent: LibraryScanJobProgressChangedDomainEvent, token: CancellationToken): ValueTask
}
' ============================== JOB MODEL RELATIONSHIPS ==============================
@@ -328,30 +411,46 @@ class LibraryScanJobProgressChangedDomainEventHandler {
IMediaLibraryScanJob <|.. MediaLibraryScanJob : implements
IMediaLibraryScanJob <|-- IBooksFileSystemDiscoveryJob
IMediaLibraryScanJob <|-- IMusicFileSystemDiscoveryJob
IMediaLibraryScanJob <|-- IMusicMetadataExtractionJob
IMediaLibraryScanJob <|-- IMediaLibraryScanDiffJob
IMediaLibraryScanJob <|-- IMediaLibraryScanHashJob
IMediaLibraryScanJob <|-- IGoodReadsMetadataScrapJob
IMediaLibraryScanJob <|-- IMediaLibraryScanProviderConfigurationInvalidationJob
IMediaLibraryScanJob <|-- IMediaLibraryScanMetadataEnrichmentJob
IMediaLibraryScanJob <|-- IMediaLibraryScanArtworkEnrichmentJob
IMediaLibraryScanJob <|-- IMediaLibraryScanResultsSaveJob
MediaLibraryScanJob <|-- BooksFileSystemDiscoveryJob : inherits
MediaLibraryScanJob <|-- MusicFileSystemDiscoveryJob : inherits
MediaLibraryScanJob <|-- MusicMetadataExtractionJob : inherits
MediaLibraryScanJob <|-- MediaLibraryScanDiffJob : inherits
MediaLibraryScanJob <|-- MediaLibraryScanHashJob : inherits
MediaLibraryScanJob <|-- GoodReadsMetadataScrapJob : inherits
MediaLibraryScanJob <|-- MediaLibraryScanProviderConfigurationInvalidationJob : inherits
MediaLibraryScanJob <|-- MediaLibraryScanMetadataEnrichmentJob : inherits
MediaLibraryScanJob <|-- MediaLibraryScanArtworkEnrichmentJob : inherits
MediaLibraryScanJob <|-- MediaLibraryScanResultsSaveJob : inherits
IBooksFileSystemDiscoveryJob <|.. BooksFileSystemDiscoveryJob : implements
IMusicFileSystemDiscoveryJob <|.. MusicFileSystemDiscoveryJob : implements
IMusicMetadataExtractionJob <|.. MusicMetadataExtractionJob : implements
IMediaLibraryScanDiffJob <|.. MediaLibraryScanDiffJob : implements
IMediaLibraryScanHashJob <|.. MediaLibraryScanHashJob : implements
IGoodReadsMetadataScrapJob <|.. GoodReadsMetadataScrapJob : implements
IMediaLibraryScanProviderConfigurationInvalidationJob <|.. MediaLibraryScanProviderConfigurationInvalidationJob : implements
IMediaLibraryScanMetadataEnrichmentJob <|.. MediaLibraryScanMetadataEnrichmentJob : implements
IMediaLibraryScanArtworkEnrichmentJob <|.. MediaLibraryScanArtworkEnrichmentJob : implements
IMediaLibraryScanResultsSaveJob <|.. MediaLibraryScanResultsSaveJob : implements
' ============================== JOB TRIGGER CHAIN ==============================
BooksFileSystemDiscoveryJob ..> MediaLibraryScanDiffJob : triggers
MusicFileSystemDiscoveryJob ..> MediaLibraryScanDiffJob : triggers
MediaLibraryScanDiffJob ..> MediaLibraryScanHashJob : triggers
MediaLibraryScanHashJob ..> GoodReadsMetadataScrapJob : triggers when metadata enrichment is enabled
GoodReadsMetadataScrapJob ..> MediaLibraryScanResultsSaveJob : triggers
MediaLibraryScanHashJob ..> MediaLibraryScanResultsSaveJob : triggers when metadata enrichment is disabled
MediaLibraryScanHashJob ..> MediaLibraryScanResultsSaveJob : triggers
MediaLibraryScanHashJob ..> MusicMetadataExtractionJob : triggers
MusicMetadataExtractionJob ..> MediaLibraryScanResultsSaveJob : triggers
MediaLibraryScanResultsSaveJob ..> MediaLibraryScanProviderConfigurationInvalidationJob : triggers
MediaLibraryScanProviderConfigurationInvalidationJob ..> MediaLibraryScanMetadataEnrichmentJob : triggers
MediaLibraryScanMetadataEnrichmentJob ..> MediaLibraryScanArtworkEnrichmentJob : triggers
MediaLibraryScanJob ..> ScanFailurePublisher : publishes failure on unhandled exception
@@ -359,21 +458,48 @@ MediaLibraryScanJob ..> ScanFailurePublisher : publishes failure on unhandled ex
IMediaLibraryScannerFactory <|.. MediaLibraryScannerFactory : implements
IMediaLibraryScanJobFactory <|.. MediaLibraryScanJobFactory : implements
IScanJobRegistry <|.. ScanJobRegistry : implements
IMediaTypeScanner <|-- IBookLibraryTypeScanner
IBookLibraryTypeScanner <|.. BookLibraryTypeScanner : implements
IMediaTypeScanner <|-- IMusicLibraryTypeScanner
IMusicLibraryTypeScanner <|.. MusicLibraryTypeScanner : implements
MediaLibraryScannerFactory ..> IMediaTypeScanner : creates
BookLibraryTypeScanner --> IMediaLibraryScanJobFactory : uses
BookLibraryTypeScanner --> IScanJobRegistry : splices plugin jobs
BookLibraryTypeScanner ..> IBooksFileSystemDiscoveryJob : creates
BookLibraryTypeScanner ..> IMediaLibraryScanDiffJob : creates
BookLibraryTypeScanner ..> IMediaLibraryScanHashJob : creates
BookLibraryTypeScanner ..> IGoodReadsMetadataScrapJob : creates
BookLibraryTypeScanner ..> IMediaLibraryScanResultsSaveJob : creates
BookLibraryTypeScanner ..> IMediaLibraryScanProviderConfigurationInvalidationJob : creates
BookLibraryTypeScanner ..> IMediaLibraryScanMetadataEnrichmentJob : creates
BookLibraryTypeScanner ..> IMediaLibraryScanArtworkEnrichmentJob : creates
MusicLibraryTypeScanner --> IMediaLibraryScanJobFactory : uses
MusicLibraryTypeScanner ..> IMusicFileSystemDiscoveryJob : creates
MusicLibraryTypeScanner ..> IMediaLibraryScanDiffJob : creates
MusicLibraryTypeScanner ..> IMediaLibraryScanHashJob : creates
MusicLibraryTypeScanner ..> IMusicMetadataExtractionJob : creates
MusicLibraryTypeScanner ..> IMediaLibraryScanResultsSaveJob : creates
MusicLibraryTypeScanner ..> IMediaLibraryScanProviderConfigurationInvalidationJob : creates
MusicLibraryTypeScanner ..> IMediaLibraryScanMetadataEnrichmentJob : creates
MusicLibraryTypeScanner ..> IMediaLibraryScanArtworkEnrichmentJob : creates
IMediaLibraryScanResultsSaveJob --> IMediaLibraryScanItemMaterializer : delegates to
IMediaLibraryScanProviderConfigurationInvalidationJob --> IMediaLibraryScanItemMaterializer : delegates to
IMediaLibraryScanMetadataEnrichmentJob --> IMediaLibraryScanMetadataEnricher : delegates to
IMediaLibraryScanArtworkEnrichmentJob --> IMediaLibraryScanArtworkEnricher : delegates to
IMediaLibraryScanItemMaterializer <|.. BooksMediaLibraryScanItemMaterializer : implements
IMediaLibraryScanItemMaterializer <|.. MusicMediaLibraryScanItemMaterializer : implements
IMediaLibraryScanMetadataEnricher <|.. BooksMediaLibraryScanMetadataEnricher : implements
IMediaLibraryScanMetadataEnricher <|.. MusicMediaLibraryScanMetadataEnricher : implements
IMediaLibraryScanArtworkEnricher <|.. BooksMediaLibraryScanArtworkEnricher : implements
IMediaLibraryScanArtworkEnricher <|.. MusicMediaLibraryScanArtworkEnricher : implements
ILibraryPathTemplateService <|.. LibraryPathTemplateService : implements
ILibraryPathPartCatalog <|.. MusicLibraryPathPartCatalog : implements
ILibraryPathPartCatalog <|.. BookLibraryPathPartCatalog : implements
LibraryPathTemplateService --> ILibraryPathPartCatalog : uses
MusicMetadataExtractionJob --> ILibraryPathTemplateService : derives metadata from paths
ScanJobRegistry ..> IMediaLibraryScanJob : resolves plugin jobs for hooks
MediaLibraryScanJobFactory ..> IMediaLibraryScanJob : creates
' ============================== SERVICE RELATIONSHIPS ==============================
@@ -392,7 +518,7 @@ IMediaLibrariesScanQueue <|.. MediaLibrariesScanQueue : implements
MediaLibraryScanJobProcessorJob --> IMediaLibrariesScanQueue : reads from
MediaLibraryScanJobProcessorJob --> IMediaLibrariesScanCancellationTracker : links scan token
MediaLibraryScanJobProcessorJob ..> BooksFileSystemDiscoveryJob : triggers root job
MediaLibraryScanJobProcessorJob ..> IMediaLibraryScanJob : triggers root job
' ============================== TRACKER RELATIONSHIPS ==============================
@@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentStyleType="text/css" height="4878px" preserveAspectRatio="none" style="width:3794px;height:4878px;background:#FFFFFF;" version="1.1" viewBox="0 0 3794 4878" width="3794px" zoomAndPan="magnify"><title>Code diagram for Background Services 3.2.1</title><defs/><g><text fill="#000000" font-family="sans-serif" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="297.9922" x="1741.4482" y="24.5332">Code diagram for Background Services 3.2.1</text><!--class IMediaLibraryScanJob--><g id="elem_IMediaLibraryScanJob"><rect codeLine="13" fill="#FFFFFF" height="312.1406" id="IMediaLibraryScanJob" rx="2.5" ry="2.5" style="stroke:#000000;stroke-width:0.5;" width="210.4336" x="2495" y="3008.6094"/><ellipse cx="2527.612" cy="3024.6094" fill="#B4A7E5" rx="11" ry="11" style="stroke:#181818;stroke-width:1;"/><path d="M2528.5651,3021.25 L2528.5651,3027.9063 L2530.2838,3027.9063 Q2530.8932,3027.9063 2531.1588,3028.1406 Q2531.4245,3028.375 2531.4245,3028.7656 Q2531.4245,3029.1406 2531.1588,3029.375 Q2530.8932,3029.6094 2530.2838,3029.6094 L2525.1432,3029.6094 Q2524.5338,3029.6094 2524.2682,3029.375 Q2524.0026,3029.1406 2524.0026,3028.75 Q2524.0026,3028.375 2524.2682,3028.1406 Q2524.5338,3027.9063 2525.1432,3027.9063 L2526.862,3027.9063 L2526.862,3021.25 L2525.1432,3021.25 Q2524.5338,3021.25 2524.2682,3021.0156 Q2524.0026,3020.7813 2524.0026,3020.3906 Q2524.0026,3020.0156 2524.2682,3019.7813 Q2524.5338,3019.5469 2525.1432,3019.5469 L2530.2838,3019.5469 Q2530.8932,3019.5469 2531.1588,3019.7813 Q2531.4245,3020.0156 2531.4245,3020.3906 Q2531.4245,3020.7813 2531.1588,3021.0156 Q2530.8932,3021.25 2530.2838,3021.25 L2528.5651,3021.25 Z " fill="#000000"/><text fill="#000000" font-family="sans-serif" font-size="14" font-style="italic" lengthAdjust="spacing" textLength="139.2959" x="2545.5257" y="3030.3379">IMediaLibraryScanJob</text><line style="stroke:#000000;stroke-width:0.5;" x1="2496" x2="2704.4336" y1="3040.6094" y2="3040.6094"/><ellipse cx="2506" cy="3054.9141" fill="none" rx="3" ry="3" style="stroke:#038048;stroke-width:1;"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="47.4756" x="2515" y="3059.1426">ScanId:</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="3.8896" x="2562.4756" y="3059.1426">&#160;</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="43.5859" x="2566.3652" y="3059.1426">ScanId</text><ellipse cx="2506" cy="3072.5234" fill="none" rx="3" ry="3" style="stroke:#038048;stroke-width:1;"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="45.124" x="2515" y="3076.752">UserId:</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="3.8896" x="2560.124" y="3076.752">&#160;</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="41.2344" x="2564.0137" y="3076.752">UserId</text><ellipse cx="2506" cy="3090.1328" fill="none" rx="3" ry="3" style="stroke:#038048;stroke-width:1;"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="58.3584" x="2515" y="3094.3613">LibraryId:</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="3.8896" x="2573.3584" y="3094.3613">&#160;</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="54.4688" x="2577.248" y="3094.3613">LibraryId</text><ellipse cx="2506" cy="3116.5469" fill="none" rx="3" ry="3" style="stroke:#038048;stroke-width:1;"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="56.0273" x="2515" y="3111.9707">Children:</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="177.4336" x="2515" y="3129.5801">List&lt;IMediaLibraryScanJob&gt;</text><ellipse cx="2506" cy="3151.7656" fill="none" rx="3" ry="3" style="stroke:#038048;stroke-width:1;"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="52.1377" x="2515" y="3147.1895">Parents:</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="177.4336" x="2515" y="3164.7988">List&lt;IMediaLibraryScanJob&gt;</text><ellipse cx="2506" cy="3178.1797" fill="none" rx="3" ry="3" style="stroke:#038048;stroke-width:1;"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="43.5791" x="2515" y="3182.4082">Status:</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="3.8896" x="2558.5791" y="3182.4082">&#160;</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="136.9648" x="2562.4688" y="3182.4082">LibraryScanJobSLine truncated
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" data-diagram-type="CLASS" style="width:4278px;height:5609px;background:#FFFFFF;" width="4278px" height="5609px" viewBox="0 0 4278 5609" zoomAndPan="magnify" preserveAspectRatio="none" contentStyleType="text/css"><?plantuml 1.2026.7?><defs/><g font-family="sans-serif" lengthAdjust="spacing"><g class="title" data-source-line="4"><text x="1986.931" y="24.533" fill="#000" font-size="14" textLength="297.992" font-weight="700">Code diagram for Background Services 3.2.1</text></g><!--class IMediaLibraryScanJob--><g class="entity" data-qualified-name="IMediaLibraryScanJob" id="ent0001" data-source-line="13"><rect x="2288.5" y="2658.609" width="210.434" height="312.141" fill="#FFF" style="stroke:#000;stroke-width:0.5;" rx="2.5" ry="2.5"/><ellipse cx="2321.112" cy="2674.609" rx="11" ry="11" fill="#B4A7E5" style="stroke:#181818;stroke-width:1;"/><path d="M2322.065,2671.25 L2322.065,2677.906 L2323.784,2677.906 Q2324.393,2677.906 2324.659,2678.141 Q2324.924,2678.375 2324.924,2678.766 Q2324.924,2679.141 2324.659,2679.375 Q2324.393,2679.609 2323.784,2679.609 L2318.643,2679.609 Q2318.034,2679.609 2317.768,2679.375 Q2317.503,2679.141 2317.503,2678.75 Q2317.503,2678.375 2317.768,2678.141 Q2318.034,2677.906 2318.643,2677.906 L2320.362,2677.906 L2320.362,2671.25 L2318.643,2671.25 Q2318.034,2671.25 2317.768,2671.016 Q2317.503,2670.781 2317.503,2670.391 Q2317.503,2670.016 2317.768,2669.781 Q2318.034,2669.547 2318.643,2669.547 L2323.784,2669.547 Q2324.393,2669.547 2324.659,2669.781 Q2324.924,2670.016 2324.924,2670.391 Q2324.924,2670.781 2324.659,2671.016 Q2324.393,2671.25 2323.784,2671.25 L2322.065,2671.25 Z " fill="#000"/><text x="2339.026" y="2680.338" fill="#000" font-size="14" textLength="139.296" font-style="italic">IMediaLibraryScanJob</text><line x1="2289.5" y1="2690.609" x2="2497.934" y2="2690.609" style="stroke:#000;stroke-width:0.5;"/><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2299.5" cy="2704.914" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2308.5" y="2709.143" fill="#000" font-size="14" textLength="47.476">ScanId:</text><text x="2355.976" y="2709.143" fill="#000" font-size="14"> </text><text x="2359.865" y="2709.143" fill="#000" font-size="14" textLength="43.586">ScanId</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2299.5" cy="2722.523" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2308.5" y="2726.752" fill="#000" font-size="14" textLength="45.124">UserId:</text><text x="2353.624" y="2726.752" fill="#000" font-size="14"> </text><text x="2357.514" y="2726.752" fill="#000" font-size="14" textLength="41.234">UserId</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2299.5" cy="2740.133" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2308.5" y="2744.361" fill="#000" font-size="14" textLength="58.358">LibraryId:</text><text x="2366.858" y="2744.361" fill="#000" font-size="14"> </text><text x="2370.748" y="2744.361" fill="#000" font-size="14" textLength="54.469">LibraryId</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2299.5" cy="2766.547" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2308.5" y="2761.971" fill="#000" font-size="14" textLength="56.027">Children:</text><text x="2308.5" y="2779.58" fill="#000" font-size="14" textLength="177.434">List&lt;IMediaLibraryScanJob></text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2299.5" cy="2801.766" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2308.5" y="2797.189" fill="#000" font-size="14" textLength="52.138">Parents:</text><text x="2308.5" y="2814.799" fill="#000" font-size="14" textLength="177.434">List&lt;IMediaLibraryScanJob></text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2299.5" cy="2828.18" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2308.5" y="2832.408" fill="#000" font-size="14" textLength="43.579">Status:</text><text x="2352.079" y="2832.408" fill="#000" font-size="14"> </text><text x="2355.969" y="2832.408" fill="#000" font-size="14" textLength="136.965">LibraryScanJobStatus</text><line x1="2289.5" y1="2839.484" x2="2497.934" y2="2839.484" style="stroke:#000;stroke-width:0.5;"/><g data-visibility-modifier="PUBLIC_METHOD"><ellipse cx="2299.5" cy="2862.594" rx="3" ry="3" fill="#84BE84" style="stroke:#038048;stroke-width:1;"/></g><text x="2308.5" y="2858.018" fill="#000" font-size="14" textLength="84.048">AddChild(job:</text><text x="2308.5" y="2875.627" fill="#000" font-size="14" textLength="143.958">IMediaLibraryScanJob)</text><g data-visibility-modifier="PUBLIC_METHOD"><ellipse cx="2299.5" cy="2897.813" rx="3" ry="3" fill="#84BE84" style="stroke:#038048;stroke-width:1;"/></g><text x="2308.5" y="2893.236" fill="#000" font-size="14" textLength="93.393">AddParent(job:</text><text x="2308.5" y="Line truncated

Before

Width:  |  Height:  |  Size: 310 KiB

After

Width:  |  Height:  |  Size: 326 KiB

@@ -36,6 +36,10 @@ internal sealed class FileSystemDiscoveryJob : MediaLibraryScanJob, IFileSystemD
}
}
```
## Amendments
- **2026-10-09**: The generic `FileSystemDiscoveryJob` / `IFileSystemDiscoveryJob` was split into per-type discovery jobs (`BooksFileSystemDiscoveryJob`, `MusicFileSystemDiscoveryJob`), and the job execution contract is now `ExecuteAsync<TInput>(Guid id, TInput input, CancellationToken token)` on `IMediaLibraryScanJob`. The `IServiceScopeFactory` decision itself is unchanged.
## Consequences
### Positive Outcomes
@@ -26,7 +26,11 @@ private static List<FileInfo> GetFiles(...)
```
## Consequences
## Amendments
- **2026-10-09**: The single generic `FileSystemDiscoveryJob` was split into per-type discovery jobs (`BooksFileSystemDiscoveryJob`, `MusicFileSystemDiscoveryJob`). The `System.IO` guidance of this ADR applies to the books discovery job, which still traverses the file system directly. The music discovery job uses the domain file system provider services (`IFileProviderService`, `IDirectoryProviderService`) instead.
## Consequences
### Performance vs Purity Tradeoff
| Metric | Before (Domain) | After (System.IO) | Delta |
@@ -4,13 +4,13 @@
**Accepted** (2026-08-08)
## Context
The media library scan pipeline stages the file system items discovered during a scan before comparing them against the `LibraryScanSnapshots` table (ADR-0004). A staging store is needed that:
The media library scan pipeline stages the file system items discovered during a scan before comparing them against the `LibraryScanSnapshots` table ([ADR-0004](architecture-decision-record-0004.md)). A staging store is needed that:
1. receives the discovered file system items in bounded batches,
2. is read by the diff, hash and metadata enrichment jobs,
3. is written by the discovery job and read by later jobs, which run in separate dependency injection scopes (see ADR-0001), hence on separate database connections.
3. is written by the discovery job and read by later jobs, which run in separate dependency injection scopes (see [ADR-0001](architecture-decision-record-0001.md)), hence on separate database connections.
A real SQLite `TEMP` table was considered, but SQLite `TEMP` tables are scoped to a single database connection. Because each media library scan job creates its own `AsyncServiceScope`, and therefore its own `LuminaDbContext` and connection (ADR-0001), a `TEMP` table created by the discovery job would be invisible to the diff job, which runs on a different connection. Making a `TEMP` table work would require pinning a single dedicated connection for the whole staging phase of a scan, a larger architectural carve-out.
A real SQLite `TEMP` table was considered, but SQLite `TEMP` tables are scoped to a single database connection. Because each media library scan job creates its own `AsyncServiceScope`, and therefore its own `LuminaDbContext` and connection ([ADR-0001](architecture-decision-record-0001.md)), a `TEMP` table created by the discovery job would be invisible to the diff job, which runs on a different connection. Making a `TEMP` table work would require pinning a single dedicated connection for the whole staging phase of a scan, a larger architectural carve-out.
## Decision
Use a permanent table, `LibraryScanStagingResults`, keyed by `(LibraryScanId, Path)`. Its rows are deleted at the end of the scan (as part of the snapshot swap transaction of the save job) and on scan failure or cancellation. Leftover rows of a crashed scan are inert, because every scan has a unique id, and can be purged by the audit cleanup job.
@@ -35,9 +35,9 @@ Use a permanent table, `LibraryScanStagingResults`, keyed by `(LibraryScanId, Pa
### 1. SQLite `TEMP` table with a single pinned connection
The whole staging phase would hold one dedicated connection open, and all jobs would share it.
**Rejected**: It conflicts with the per-job scope model of ADR-0001, holds a database connection open for the entire scan duration, and makes the pipeline harder to compose and test.
**Rejected**: It conflicts with the per-job scope model of [ADR-0001](architecture-decision-record-0001.md), holds a database connection open for the entire scan duration, and makes the pipeline harder to compose and test.
### 2. In-memory staging (list of discovered items passed between jobs)
The discovery job would pass the full list of discovered items to the diff job.
**Rejected**: It brings back the unbounded memory problem that ADR-0004 eliminates. The staging table is what allows bounded, batched writes.
**Rejected**: It brings back the unbounded memory problem that [ADR-0004](architecture-decision-record-0004.md) eliminates. The staging table is what allows bounded, batched writes.
@@ -1,7 +1,7 @@
# Architecture Decision Record (ADR): 0008 - Plugin Hook Points and the Media Library Scan Job Graph
## Status
**Accepted** (2026-08-08)
**Superseded by [ADR-0015](architecture-decision-record-0015.md)** (2026-10-09)
## Context
The media library scanning subsystem is meant to be modular: generic jobs, like the scan diff, hashing and results save jobs, are shared by all media library types, while media-type specific jobs, like the GoodReads metadata scrap job for books or a TMDB cover art job for movies, are decoupled and composed into a directed acyclic graph.
@@ -15,24 +15,30 @@ Define named hook points for the scan job graph in `ScanJobHooks`: `AfterFileSys
Define the `IScanJobRegistry` interface, which maps a hook name to the plugin jobs registered at that hook. The media type scanners (for example `BookLibraryTypeScanner`) splice the plugin jobs returned by the registry into the graph at the corresponding hook points, preserving the parent-child relationships. The composition root of the plugin system provides the registry with the plugin job types; the default registry registers no plugin jobs.
The payload passing between jobs keeps the generic `ExecuteAsync<TInput>` contract. The core scan jobs are database-centric and ignore the payload, because they exchange the scan state through the staging and snapshot tables (ADR-0004, ADR-0005). Payload passing remains available for plugin jobs that need to exchange data in memory, and the runtime type switching that was used in the previous `HashComparerJob` is eliminated.
The payload passing between jobs keeps the generic `ExecuteAsync<TInput>` contract. The core scan jobs are database-centric and ignore the payload, because they exchange the scan state through the staging and snapshot tables ([ADR-0004](architecture-decision-record-0004.md), [ADR-0005](architecture-decision-record-0005.md)). Payload passing remains available for plugin jobs that need to exchange data in memory, and the runtime type switching that was used in the previous `HashComparerJob` is eliminated.
## Amendments
- **2026-10-09**: Superseded by [ADR-0015](architecture-decision-record-0015.md). The `ScanJobHooks` hook points and the `IScanJobRegistry` / `ScanJobRegistry` were removed, and plugins now contribute capability providers (`IMetadataProvider`, `IArtworkProvider`, `IBookReader`) instead of scan jobs. This ADR is marked superseded rather than amended because its decision is replaced in full by [ADR-0015](architecture-decision-record-0015.md); [ADR-0001](architecture-decision-record-0001.md), [ADR-0003](architecture-decision-record-0003.md) and [ADR-0010](architecture-decision-record-0010.md) stay accepted because only part of their decisions changed.
## Consequences
> The rows struck through reflect the superseded hook point and scan job registry model. They no longer hold, see [ADR-0015](architecture-decision-record-0015.md).
### Positive Outcomes
| Aspect | Benefit |
|-----------------------|-----------------------------------------------------------|
| Modularity | Media-type specific jobs are composed per scanner |
| Extensibility | Plugins inject jobs at documented hook points |
| ~~Extensibility~~ | ~~Plugins inject jobs at documented hook points~~ (removed, see [ADR-0015](architecture-decision-record-0015.md)) |
| Multi-parent support | The base job model keeps full parent-child capabilities |
| Fail fast composition | Wrong payload wiring produces loud errors instead of silent no-ops |
| ~~Fail fast composition~~ | ~~Wrong payload wiring produces loud errors instead of silent no-ops~~ (removed, see [ADR-0015](architecture-decision-record-0015.md)) |
### Risks and Tradeoffs
| Risk | Mitigation Strategy |
|-------------------------------|-------------------------------------------------------------------|
| Plugin job conflicts | Hook points are named and documented, the composition is validated when the graph is built |
| ~~Plugin job conflicts~~ | ~~Hook points are named and documented, the composition is validated when the graph is built~~ (removed, see [ADR-0015](architecture-decision-record-0015.md)) |
| Payload contract misuse | Jobs that expect a payload fail loudly when the edge type does not match |
| Scope creep | Only the sensible hook points are defined, arbitrary injection is not supported |
| ~~Scope creep~~ | ~~Only the sensible hook points are defined, arbitrary injection is not supported~~ (removed, see [ADR-0015](architecture-decision-record-0015.md)) |
## Alternatives Considered
@@ -4,7 +4,7 @@
**Accepted** (2026-08-08)
## Context
Media library scan jobs are launched in a fire-and-forget manner from the background job processor (`MediaLibraryScanJobProcessorJob`), because only the root jobs are placed on the in-memory queue, and they trigger their children recursively (see ADR-0001 and ADR-0008). The launch mechanism uses `FireAndForgetSafeAsync`, which observes the launched task but does not crash the queue consumer.
Media library scan jobs are launched in a fire-and-forget manner from the background job processor (`MediaLibraryScanJobProcessorJob`), because only the root jobs are placed on the in-memory queue, and they trigger their children recursively (see [ADR-0001](architecture-decision-record-0001.md) and [ADR-0008](architecture-decision-record-0008.md)). The launch mechanism uses `FireAndForgetSafeAsync`, which observes the launched task but does not crash the queue consumer.
The scan jobs must report their failures through the existing eventual consistency mechanism, the `LibraryScanFailedDomainEvent`, whose handler marks the scan as failed, releases the scan processing resources and notifies the clients. The previous job implementations only published the failure event on a few specific error paths, so any other exception was silently swallowed, leaving the scan stuck in the `Running` state, leaking its cancellation source and progress entry.
@@ -4,20 +4,28 @@
**Accepted** (2026-08-09)
## Context
ADR-0009 established that every media library scan job wraps its execution in a catch-all that marks the job as `Failed` and publishes the `LibraryScanFailedDomainEvent`. That decision applies to the mandatory scan jobs: file system discovery, scan diff, content hashing and scan results save. These jobs are transactional in nature, and a failure in any of them means the file state of the library was not committed.
[ADR-0009](architecture-decision-record-0009.md) established that every media library scan job wraps its execution in a catch-all that marks the job as `Failed` and publishes the `LibraryScanFailedDomainEvent`. That decision applies to the mandatory scan jobs: file system discovery, scan diff, content hashing and scan results save. These jobs are transactional in nature, and a failure in any of them means the file state of the library was not committed.
The metadata enrichment phase runs after the scan results save job, once the file state of the library is committed and the books are materialized. The enrichment phase is best-effort: a book whose metadata could not be retrieved is still browsable with its shell metadata (path and filename-derived title), and a crash mid-enrichment must not roll back the already committed scan results, nor hide the successfully enriched books. This was an explicit product decision: partial enrichment survives a crash, and the scan is not considered failed because a remote metadata provider was unreachable or a provider crashed.
## Decision
The metadata enrichment job (`MediaLibraryScanMetadataEnrichmentJob`) is a best-effort job with failure semantics that differ from the mandatory jobs of ADR-0009:
The metadata enrichment job (`MediaLibraryScanMetadataEnrichmentJob`) is a best-effort job with failure semantics that differ from the mandatory jobs of [ADR-0009](architecture-decision-record-0009.md):
- Per-book failures are isolated: a metadata provider that throws, returns unusable metadata, or fails to be applied marks the book as `Failed` (`MetadataStatus.Failed`) and moves to the next book. The other providers are still tried for the same book, and the other books are still processed.
- Per-provider failures are isolated: a crashing metadata provider does not prevent the other providers from being tried, in their configured order.
- The scan is considered completed (`LibraryScanFinishedDomainEvent`) after the enrichment phase, even when some books failed to be enriched. The failure is recorded on the books, not on the scan.
- Only a host-side catastrophic failure of the enrichment job itself (e.g., a storage error) fails the scan, through the existing catch-all of ADR-0009. In that case the file state is already committed, and a re-scan retries the enrichment.
- Only a host-side catastrophic failure of the enrichment job itself (e.g., a storage error) fails the scan, through the existing catch-all of [ADR-0009](architecture-decision-record-0009.md). In that case the file state is already committed, and a re-scan retries the enrichment.
The `MediaLibraryScanResultsSaveJob` no longer publishes `LibraryScanFinishedDomainEvent`. The event is published by the last job of the directed acyclic job graph: the save job when the library does not permit downloading data from the web (no enrichment phase), or the metadata enrichment job otherwise.
## Amendments
- **2026-10-09**: The enrichment phase is now three sequential jobs, and the last job of the graph is the artwork enrichment job.
- `MediaLibraryScanProviderConfigurationInvalidationJob` invalidates the enrichment state of the items whose metadata or artwork providers changed since the last scan, and the metadata derived from the paths when the path template changed.
- `MediaLibraryScanMetadataEnrichmentJob` enriches the metadata and links the media contributors.
- `MediaLibraryScanArtworkEnrichmentJob` resolves the artwork and is always the last job, publishing `LibraryScanFinishedDomainEvent` (see `MediaLibraryScanArtworkEnrichmentJob`).
- **2026-10-09**: The `MediaLibraryScanResultsSaveJob` no longer publishes `LibraryScanFinishedDomainEvent`; it triggers the provider configuration invalidation job. The metadata enrichment semantics described below apply to both the metadata and the artwork enrichment jobs, and across every media library type with enrichers, including music (`MusicMediaLibraryScanMetadataEnricher`, `MusicMediaLibraryScanArtworkEnricher`), not only books.
## Consequences
### Positive Outcomes
@@ -37,7 +45,7 @@ The `MediaLibraryScanResultsSaveJob` no longer publishes `LibraryScanFinishedDom
## Alternatives Considered
### 1. Fail the scan on any enrichment failure
Keep ADR-0009 semantics for the enrichment job.
Keep [ADR-0009](architecture-decision-record-0009.md) semantics for the enrichment job.
**Rejected**: The file state is already committed, and partial enrichment is better than failing a scan that saved the library. Failing the scan would also roll back nothing, while misleading the user about the scan outcome.
@@ -12,7 +12,7 @@ Key constraints that shaped this decision:
1. **Licensing Change**: MediatR became a commercial product for .NET 8+ projects, requiring a paid license for continued use in production systems.
2. **Narrow Usage Scope**: MediatR is used for command and query dispatching, with a single pipeline behavior (automatic application validation) and no stream requests. Its notification publishing is used for domain event publishing, which is outside the scope of this ADR and is replaced separately (see ADR-0013).
2. **Narrow Usage Scope**: MediatR is used for command and query dispatching, with a single pipeline behavior (automatic application validation) and no stream requests. Its notification publishing is used for domain event publishing, which is outside the scope of this ADR and is replaced separately (see [ADR-0013](architecture-decision-record-0013.md)).
3. **Zero Abstraction Value at Scale**: With only a validation pipeline behavior registered, the command and query dispatching provides no runtime value beyond a dispatch indirection that can be replaced by direct handler injection. It actually hurts performance by runtime dispatching of handlers via reflection.
@@ -14,7 +14,7 @@ Domain event publishing, the mechanism that fires the `IDomainEvent` objects rai
3. **Publishing sites**: Mediator's `IPublisher` is used from `EventualConsistencyMiddleware` (queued events, published after the transaction commits), from `MediaLibraryScanningService` (scan start events), and from the scan jobs and `ScanFailurePublisher` (progress and failure events).
The remaining publish half carries the same third-party dependency and source-generated registration that ADR-0011 removed from the dispatch half.
The remaining publish half carries the same third-party dependency and source-generated registration that [ADR-0011](architecture-decision-record-0011.md) removed from the dispatch half.
## Decision
@@ -38,7 +38,7 @@ The existing assembly scan that registers `ICommandHandler<>`, `IQueryHandler<>`
### Consistency Guarantees Preserved
- Commit-before-publish ordering in `EventualConsistencyMiddleware` is unchanged (see ADR-0002).
- Commit-before-publish ordering in `EventualConsistencyMiddleware` is unchanged (see [ADR-0002](architecture-decision-record-0002.md)).
- Re-entrant publishing (a handler publishing another event) is safe: each publish resolves handlers fresh from the scoped provider.
- Jobs publish from their own scopes, so handlers receive a fresh unit of work and `DbContext`.
@@ -73,4 +73,4 @@ Introduce `IIntegrationEvent` now, with a durable outbox, for inter-bounded-cont
Keep the Mediator library for the domain event publishing half.
**Rejected**: for the same reason ADR-0011 rejected it for command and query dispatching - an external dependency, with source-generated registration, for functionality that is fully implementable in-house.
**Rejected**: for the same reason [ADR-0011](architecture-decision-record-0011.md) rejected it for command and query dispatching - an external dependency, with source-generated registration, for functionality that is fully implementable in-house.
@@ -0,0 +1,79 @@
# Architecture Decision Record (ADR): 0015 - Plugin Capability Providers for Media Library Enrichment
## Status
**Accepted** (2026-10-09)
Supersedes [ADR-0008](architecture-decision-record-0008.md).
## Context
[ADR-0008](architecture-decision-record-0008.md) extended the media library scanning subsystem with plugin jobs: it defined named scan job hook points in `ScanJobHooks` and a scan job registry (`IScanJobRegistry` / `ScanJobRegistry`) that mapped a hook name to the plugin job types to splice into the scan job graph at that junction.
That model coupled plugins to the host scan graph. A plugin had to know the internal job model and the junction semantics to contribute anything, the host had to know every plugin job type up front to build the graph, and the resulting graph mixed host jobs and plugin jobs with no clear ownership of the enrichment behavior. It also kept the `HashComparerJob` runtime type switching around, because jobs of different types exchanged differently typed payloads.
What a plugin actually contributes is data: metadata for a media item, artwork for a media item, or the ability to decode a book. Which jobs run, in what order, and how their results are persisted is a host concern that should not be delegated to plugins.
## Decision
Separate plugin capabilities from the host scan graph. Plugins contribute capability providers, and the host owns the graph and decides when to invoke the capabilities.
### Plugin contracts
- `IPlugin` carries the identity of the plugin (`Id`, `Name`, `Author`, `Version`, `Description`) and its settings schema (`GetSettingsSchema()`).
- `IPluginServiceRegistrator` registers the services of the plugin into the host dependency injection container through `RegisterServices(IServiceCollection)`.
### Capability contracts
The host defines the capability contracts, and a plugin implements the ones it supports:
| Capability | Contract | Purpose |
|---|---|---|
| Metadata provider | `IMetadataProvider` | Searches for and returns the metadata of a media item (`GetSearchResultsAsync`, `GetMetadataAsync`), declaring its `SupportedLibraryTypes`, the `LookupType` it accepts, and whether it `RequiresWebAccess` |
| Artwork provider | `IArtworkProvider` | Returns the artwork of a media item (`GetArtworkAsync`), declaring its `SupportedLibraryTypes` and whether it `RequiresWebAccess` |
| Book reader | `IBookReader` | Decodes a book format into a normalized reading document (`OpenAsync`, `GetResourceAsync`), declaring its `SupportedExtensions` and `SupportedLibraryTypes` |
### Registration and selection
- A plugin registers each capability as a keyed transient service, keyed by its plugin `Id` (for example `AddKeyedTransient<IMetadataProvider, MusicBrainzTrackMetadataProvider>(pluginId)`). A single plugin can register several providers, of the same or of different capabilities.
- Plugins contribute zero scan jobs. The scan job graph of each media library type is built entirely by its own scanner from host jobs created through `IMediaLibraryScanJobFactory`.
- The host persists which providers are enabled for each media library and their rank, and exposes that configuration through the media library management endpoints.
- The enrichment jobs resolve the configured, enabled providers of the media library and invoke them in rank order: the metadata enrichment job delegates to `IMediaLibraryScanMetadataEnricher`, the artwork enrichment job delegates to `IMediaLibraryScanArtworkEnricher`, and the results save job delegates to `IMediaLibraryScanItemMaterializer`.
### Removed
`ScanJobHooks`, `IScanJobRegistry` and `ScanJobRegistry` are removed, along with the `HashComparerJob` runtime type switching they depended on. [ADR-0008](architecture-decision-record-0008.md) is superseded.
## Consequences
### Positive Outcomes
| Aspect | Benefit |
|---|---|
| Ownership | Plugins contribute data capabilities; the host owns the scan graph and when to invoke them |
| Decoupling | A plugin depends only on the capability contracts, not on the internal job model or the graph junctions |
| Extensibility | A new plugin adds keyed capability services and no host code, and a plugin can expose several capabilities |
| Per-library control | Providers are enabled and ranked per media library, independent of plugin installation |
| Simplicity | No hook registry, no graph splicing across the plugin boundary, and no runtime payload type switching |
### Risks and Mitigations
| Risk | Mitigation Strategy |
|---|---|
| A plugin registers a capability a library type does not support | Providers declare `SupportedLibraryTypes`, and the host only offers and invokes providers that support the library being processed |
| Two enabled providers return conflicting metadata | Providers are tried in the configured rank order, so precedence is explicit and user controlled |
| A crashing provider fails the enrichment | Enrichment is best effort and isolates provider failures ([ADR-0010](architecture-decision-record-0010.md)), so one provider cannot fail the scan |
## Alternatives Considered
### 1. Keep the scan job hook points and the scan job registry
**Rejected**: it couples plugins to the host scan graph, forces the host to know plugin job types up front, and mixes host and plugin jobs without a clear owner. It is the model this ADR replaces.
### 2. Let plugins register scan jobs directly, without a registry
**Rejected**: it removes the named junction points but keeps the coupling: plugins still have to know the job model, the graph shape and the payload contracts, and the graph still has no single owner.
### 3. Resolve capability providers by convention, without per-library configuration
**Rejected**: enabling and ranking providers per media library is a requirement. It lets a user run several metadata or artwork sources for one library, in a chosen precedence, and turn providers off without uninstalling the plugin.
+142 -28
View File
@@ -1,14 +1,15 @@
- [Lumina Domain](#lumina-domain)
- [Audio Library Aggregate](#audio-library-aggregate)
- [Music Library Aggregate](#music-library-aggregate)
- [Artist](#artist)
- [Album](#album)
- [Track](#track)
- [Audio Rating](#audio-rating)
# [Lumina Domain](#lumina-domain)
## [Audio Library Aggregate](#audio-library-aggregate)
## [Music Library Aggregate](#music-library-aggregate)
The audio library aggregate is the aggregate root of the `MusicLibrary` aggregate, which models the music of a media library. An artist is the aggregate root, owning its albums, and each album owns its tracks. Albums and tracks carry full metadata: title, description, release information, languages, genres and tags, and the tracks additionally carry the audio characteristics of their file, their moods and their ISRC codes. The media contributors that make up an artist, or that performed on an album or a track, are carried as `MusicMediaContributor` value objects.
The music library aggregate models the music of a media library. `Artist` is the aggregate root, owning its albums, and each album owns its tracks. Albums and tracks carry full metadata: title, description, release information, languages, genres and tags, and the tracks additionally carry the audio characteristics of their file, their moods and their ISRC codes. The media contributors that make up an artist, or that performed on an album or a track, are carried as `MusicMediaContributor` value objects.
### [Artist](#artist)
@@ -18,8 +19,25 @@ class Artist
Result<Artist> Create(
LibraryId libraryId,
string name,
Optional<string> sortName,
Optional<string> disambiguation,
Optional<MusicArtistType> type,
Optional<MusicArtistGender> gender,
Optional<string> country,
Optional<MusicArea> area,
Optional<MusicArea> beginArea,
Optional<MusicArea> endArea,
Optional<DateOnly> lifeSpanBegin,
Optional<DateOnly> lifeSpanEnd,
bool isEnded,
Optional<string> website,
Optional<MusicBrainzId> musicBrainzArtistId,
List<string> ipis,
List<string> isnis,
List<MusicArtistAlias> aliases,
List<Genre> genres,
List<Tag> tags,
List<AudioRating> ratings,
List<MusicMediaContributor> contributors,
List<Album> albums);
}
@@ -34,10 +52,58 @@ class Artist
"value": "00000000-0000-0000-0000-000000000000"
},
"name": "Queen",
"sortName": "Queen",
"disambiguation": null,
"type": "Group",
"gender": null,
"country": "GB",
"area": {
"musicBrainzAreaId": {
"value": "00000000-0000-0000-0000-000000000000"
},
"name": "United Kingdom",
"sortName": null,
"disambiguation": null,
"type": "Country",
"iso3166Code": "GB"
},
"beginArea": null,
"endArea": null,
"lifeSpanBegin": "1970-06-27",
"lifeSpanEnd": null,
"isEnded": false,
"website": "https://www.queenonline.com",
"musicBrainzArtistId": {
"value": "00000000-0000-0000-0000-000000000000"
},
"ipis": [],
"isnis": [],
"aliases": [
{
"name": "Queen",
"sortName": "Queen",
"type": "Artist name",
"locale": "en",
"isPrimary": true,
"beginDate": "1970-06-27",
"endDate": null,
"isEnded": false
}
],
"genres": [
{ "name": "Rock" }
],
"tags": [
{ "name": "classic" }
],
"ratings": [
{
"value": 4.5,
"maxValue": 5,
"source": "MusicBrainz",
"voteCount": 2345
}
],
"contributors": [],
"albums": [
{
@@ -54,9 +120,14 @@ class Album
{
Result<Album> Create(
AlbumMetadata metadata,
Optional<string> disambiguation,
Optional<MusicMediaFormat> mediaFormat,
Optional<MusicReleasePackaging> packaging,
Optional<string> script,
Optional<Barcode> barcode,
Optional<string> catalogNumber,
List<string> catalogNumbers,
Optional<string> label,
Optional<string> asin,
Optional<MusicBrainzId> musicBrainzReleaseId,
Optional<MusicBrainzId> musicBrainzReleaseGroupId,
Optional<MusicBrainzId> musicBrainzReleaseArtistId,
@@ -74,6 +145,7 @@ class Album
"metadata": {
"title": "A Night at the Opera",
"originalTitle": "A Night at the Opera",
"releaseTitle": "A Night at the Opera",
"description": "The fourth studio album by the British rock band Queen, released in 1975. It was the most expensive album ever recorded at the time of its release.",
"releaseInfo": {
"originalReleaseDate": "1975-11-21",
@@ -101,16 +173,21 @@ class Album
"languageName": "English",
"nativeName": "English"
},
"releaseType": "Album",
"releaseTypes": [ "Album" ],
"releaseStatus": "Official",
"totalDiscs": 1,
"totalTracks": 12
},
"disambiguation": null,
"mediaFormat": "CD",
"packaging": "JewelCase",
"script": "Latn",
"barcode": {
"value": "0042282778329"
},
"catalogNumber": "EMC 4008",
"catalogNumbers": ["EMC 4008"],
"label": "EMI",
"asin": "B000000000",
"musicBrainzReleaseId": {
"value": "00000000-0000-0000-0000-000000000000"
},
@@ -149,20 +226,20 @@ class Album
class Track
{
Result<Track> Create(
LibraryId libraryId,
string path,
AudioMetadata metadata,
Optional<string> disambiguation,
int trackNumber,
Optional<int> discNumber,
List<Isrc> isrcs,
List<Mood> moods,
Optional<string> script,
Optional<MusicKey> key,
Optional<int> bpm,
List<Mood> moods,
Optional<string> work,
bool isVideo,
List<Isrc> isrcs,
Optional<MusicWork> work,
Optional<MusicBrainzId> musicBrainzRecordingId,
Optional<MusicBrainzId> musicBrainzTrackId,
Optional<MusicBrainzId> musicBrainzWorkId,
List<MusicMediaContributor> contributors,
List<AudioRating> ratings);
}
@@ -173,9 +250,6 @@ class Track
"id": {
"value": "00000000-0000-0000-0000-000000000000"
},
"libraryId": {
"value": "00000000-0000-0000-0000-000000000000"
},
"path": "/music/queen/a-night-at-the-opera/01-bohemian-rhapsody.flac",
"metadata": {
"title": "Bohemian Rhapsody",
@@ -212,32 +286,50 @@ class Track
"channels": 2,
"bitDepth": 16,
"audioCodec": "FLAC",
"bitrate": 980
"bitrate": 980,
"acoustId": "f0e1d2c3-b4a5-4c6d-8e7f-9a0b1c2d3e4f",
"replayGainTrackGain": -7.5,
"replayGainTrackPeak": 0.9877,
"replayGainAlbumGain": -6.8,
"replayGainAlbumPeak": 0.9999
},
"disambiguation": null,
"trackNumber": 1,
"discNumber": 1,
"isrcs": [
{
"value": "GBUM71029604"
}
],
"script": "Latn",
"key": "CMajor",
"bpm": 72,
"moods": [
{ "name": "dramatic" },
{ "name": "anxious" }
],
"work": "Bohemian Rhapsody",
"isVideo": false,
"work": {
"musicBrainzWorkId": {
"value": "00000000-0000-0000-0000-000000000000"
},
"title": "Bohemian Rhapsody",
"type": "Song",
"languages": [
{
"languageCode": "en",
"languageName": "English",
"nativeName": "English"
}
],
"iswcs": []
},
"musicBrainzRecordingId": {
"value": "00000000-0000-0000-0000-000000000000"
},
"musicBrainzTrackId": {
"value": "00000000-0000-0000-0000-000000000000"
},
"musicBrainzWorkId": {
"value": "00000000-0000-0000-0000-000000000000"
},
"moods": [
{ "name": "dramatic" },
{ "name": "anxious" }
],
"isrcs": [
{
"value": "GBUM71029604"
}
],
"contributors": [],
"ratings": [
{
@@ -249,3 +341,25 @@ class Track
]
}
```
### [Audio Rating](#audio-rating)
The rating of a music media element derives from the common `Rating` value object and adds the source the rating came from.
```csharp
class AudioRating : Rating
{
Result<AudioRating> Create(decimal value, decimal maxValue, Optional<AudioRatingSource> source, Optional<int> voteCount);
}
```
```json
{
"value": 9.3,
"maxValue": 10.0,
"source": "MusicBrainz",
"voteCount": 84
}
```
`AudioRatingSource` is `User`, `MusicBrainz`, `Discogs` or `LastFm`.
+23 -11
View File
@@ -4,6 +4,7 @@
- [Genre](#genre)
- [Tag](#tag)
- [Rating](#rating)
- [Mood](#mood)
- [Release Info](#release-info)
- [Language Info](#language-info)
@@ -18,7 +19,7 @@
```csharp
class Genre
{
ErrorOr<Genre> Create(string name);
Result<Genre> Create(string name);
}
```
@@ -33,7 +34,7 @@ class Genre
```csharp
class Tag
{
ErrorOr<Tag> Create(string name);
Result<Tag> Create(string name);
}
```
@@ -45,19 +46,30 @@ class Tag
#### [Rating](#rating)
`Rating` is the abstract base of the ratings of media elements. It carries the numeric value, its maximum and an optional vote count, but no factory of its own, because the concrete ratings of each media type derive from it and add their own source. The rating of the audio library context, `AudioRating` with its `AudioRatingSource`, is documented alongside the music library aggregate.
```csharp
class Rating
abstract class Rating
{
ErrorOr<Rating> Create(decimal value, decimal maxValue, Optional<RatingSource> source = default, Optional<int> voteCount = default);
decimal Value { get; }
decimal MaxValue { get; }
Optional<int> VoteCount { get; }
decimal AsPercentage();
}
```
#### [Mood](#mood)
```csharp
class Mood
{
Result<Mood> Create(string name);
}
```
```json
{
"value": 9.3,
"maxValue": 10.0,
"source": "Imdb",
"voteCount": 84
"name": "dramatic"
}
```
@@ -66,8 +78,8 @@ class Rating
```csharp
class ReleaseInfo
{
ErrorOr<ReleaseInfo> Create(Optional<DateOnly> originalReleaseDate, Optional<int> originalReleaseYear,
Optional<DateOnly> reReleaseDate, Optional<int> reReleaseYear, Optional<string> releaseCountry, Optional<string> releaseVersion);
Result<ReleaseInfo> Create(Optional<DateOnly> originalReleaseDate, Optional<int> originalReleaseYear,
Optional<DateOnly> reReleaseDate, Optional<int> reReleaseYear, Optional<ReleaseCountry> releaseCountry, Optional<string> releaseVersion);
}
```
@@ -97,4 +109,4 @@ class LanguageInfo
"languageName": "French",
"nativeName": "Française",
}
```
```
+18 -2
View File
@@ -1,7 +1,23 @@
<span style="color: #FF0000;">Domain</span>
├── <span style="color: #004BFF;">Audio Library Bounded Context</span>
│&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;└── <span style="color: #F589DD;">Audio Library Aggregate</span>
│&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;└── <span style="color: #BDE180;">Audio Metadata</span>
│&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;└── <span style="color: #F589DD;">Music Library Aggregate</span>
│&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── <span style="color: #BDE180;">Artist Id</span>
│&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── <span style="color: #BDE180;">Album Id</span>
│&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── <span style="color: #BDE180;">Track Id</span>
│&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── <span style="color: #BDE180;">Music Media Contributor</span>
│&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── <span style="color: #BDE180;">Music Brainz Id</span>
│&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── <span style="color: #BDE180;">Music Area</span>
│&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── <span style="color: #BDE180;">Music Artist Alias</span>
│&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── <span style="color: #BDE180;">Music Work</span>
│&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── <span style="color: #BDE180;">Isrc</span>
│&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── <span style="color: #BDE180;">Barcode</span>
│&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── <span style="color: #BDE180;">Album Metadata</span>
│&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── <span style="color: #BDE180;">Audio Metadata</span>
│&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── <span style="color: #BDE180;">Audio Rating</span>
│&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── <span style="color: #80B0E0;">Album</span>
│&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── <span style="color: #80B0E0;">Track</span>
│&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── <span style="color: #FEB423;">Music Library Type Scanner</span>
│&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;└── <span style="color: #B46DD4;">Artist</span>
├── <span style="color: #004BFF;">Video Library Bounded Context</span>
│&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── <span style="color: #F589DD;">Movie Library Aggregate</span>
│&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;│&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── <span style="color: #BDE180;">Movie Id</span>
+22 -26
View File
@@ -28,19 +28,10 @@
- _**Music Video**_: A video representation of a song
## Audio Content
- _**Song**_: An individual music track
- _**Album**_: A collection of songs
- _**Artist**_: The creator of music content
- _**Audiobook**_: A narrated version of a book
- _**Live Recording**_: Audio or video of a live performance
- _**Interview**_: Audio or video recording of a conversation
- _**Cover Song**_: A rendition of a song performed by an artist other than the original
- _**Remix**_: A modified version of an original song
- _**Sound Effect**_: A short audio clip used for specific purposes
- _**Soundtrack**_: A collection of music used in a film or TV show
- _**Podcast**_: A series of audio episodes
- _**Podcast Episode**_: An individual installment of a podcast
- _**Radio Show**_: An audio program broadcast on the radio
- _**Track**_: An individual music track, the smallest unit of music in a music library (the entity is named Track, not Song)
- _**Album**_: A release that gathers the tracks of an artist
- _**Artist**_: The creator of music content, the root of the music library aggregate
- _**MusicReleaseType**_: The set of content types a music release can carry, like Album, Single, Ep, Compilation, AudioBook, Interview, Live, Remix, Soundtrack or SpokenWord
## Written Content
- _**Book**_: A standalone written work
@@ -79,15 +70,9 @@
- Anime
- YouTubeVideo
- MusicVideo
- Song
- Track
- Album
- Artist
- Audiobook
- LiveRecording
- Interview
- CoverSong
- Remix
- SoundEffect
- Podcast
- PodcastEpisode
- Book
@@ -118,7 +103,7 @@
## Aggregates
- VideoLibrary (root: VideoLibrary, entities: TVShow, Season, Episode, Movie, FilmSeries, ConcertVideo, Documentary, TutorialVideo, HomeVideo, Anime, YouTubeVideo, MusicVideo)
- AudioLibrary (root: AudioLibrary, entities: Song, Album, Artist, Audiobook, LiveRecording, Interview, CoverSong, Remix, SoundEffect)
- MusicLibrary (root: Artist, entities: Album, Track)
- PodcastLibrary (root: PodcastLibrary, entities: Podcast, PodcastEpisode)
- WrittenContentLibrary (root: WrittenContentLibrary, entities: Book, EBook, BookSeries, ComicBook, ComicSeries, Magazine, MagazineIssue, Newspaper, Manga, GraphicNovel, AcademicPaper, SheetMusic, Screenplay)
- PhotoLibrary (root: PhotoLibrary, entities: Photo, PhotoAlbum, AlbumArtwork, MoviePoster)
@@ -175,14 +160,25 @@
- StreamInfo
- StreamingQuality
- UserPreferences
- Rating
- Rating (abstract)
- AudioRating
- Genre
- Mood
- ReleaseInfo
- LanguageInfo
- AlbumMetadata
- MusicMediaContributor
- MusicBrainzId
- MusicArea
- MusicArtistAlias
- MusicWork
- Isrc
- Barcode
## Domain Services
- MediaScanner (with specialized scanners for each media type)
- MetadataFetcher (with different strategies for various media types and sources)
- Music Library Type Scanner
- Music File System Discovery Job
- Music Metadata Extraction Job
- TranscodingService
- StreamingService
- AudiobookPlaybackService
@@ -216,8 +212,8 @@
## Bounded Contexts
- MediaManagement
- Aggregates: VideoLibrary, AudioLibrary, PodcastLibrary, WrittenContentLibrary, PhotoLibrary
- Services: MediaScanner, MetadataFetcher, TranscodingService
- Aggregates: VideoLibrary, MusicLibrary, PodcastLibrary, WrittenContentLibrary, PhotoLibrary
- Services: Music Library Type Scanner, Music File System Discovery Job, Music Metadata Extraction Job
- UserExperience
- Aggregates: UserProfile
- Services: RecommendationEngine, ContentCurationService, UserActivityTrackingService
@@ -7,6 +7,7 @@ Content-Type: application/json
"title": "A Night at the Opera",
"originalTitle": "A Night at the Opera",
"description": "The fourth studio album by the British rock band Queen, released in 1975. It was the most expensive album ever recorded at the time of its release.",
"disambiguation": null,
"releaseInfo": {
"originalReleaseDate": "1975-11-21",
"originalReleaseYear": 1975,
@@ -15,10 +16,6 @@ Content-Type: application/json
"releaseCountry": "GB",
"releaseVersion": "Remastered"
},
"releaseType": "Album",
"releaseStatus": "Official",
"totalDiscs": 1,
"totalTracks": 12,
"language": {
"languageCode": "en",
"languageName": "English",
@@ -29,18 +26,27 @@ Content-Type: application/json
"languageName": "English",
"nativeName": "English"
},
"tags": [
{ "name": "classic" },
{ "name": "vinyl" }
],
"genres": [
{ "name": "Rock" },
{ "name": "Progressive Rock" }
],
"tags": [
{ "name": "classic" },
{ "name": "vinyl" }
]
"script": "Latn",
"releaseTypes": [ "Album" ],
"releaseStatus": "Official",
"totalDiscs": 1,
"totalTracks": 12,
"releaseTitle": "A Night at the Opera"
},
"mediaFormat": "CD",
"packaging": "JewelCase",
"barcode": "0042282778329",
"catalogNumber": "EMC 4008",
"catalogNumbers": ["EMC 4008"],
"label": "EMI",
"asin": "B000000000",
"musicBrainzReleaseId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"musicBrainzReleaseGroupId": "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e",
"musicBrainzReleaseArtistId": "c3d4e5f6-a7b8-4c9d-0e1f-2a3b4c5d6e7f",
@@ -69,12 +75,7 @@ Content-Type: application/json
"title": "Bohemian Rhapsody",
"originalTitle": "Bohemian Rhapsody",
"description": "A song by the British rock band Queen. It was written by Freddie Mercury and originally released on the album A Night at the Opera in 1975.",
"durationInSeconds": 354,
"sampleRate": 44100,
"channels": 2,
"bitDepth": 16,
"audioCodec": "FLAC",
"bitrate": 980,
"disambiguation": null,
"releaseInfo": {
"originalReleaseDate": "1975-10-31",
"originalReleaseYear": 1975,
@@ -93,24 +94,50 @@ Content-Type: application/json
"languageName": "English",
"nativeName": "English"
},
"tags": [
{ "name": "classic" },
{ "name": "epic" }
],
"genres": [
{ "name": "Rock" },
{ "name": "Progressive Rock" }
],
"tags": [
{ "name": "classic" },
{ "name": "epic" }
]
"isVideo": false,
"durationInSeconds": 354,
"sampleRate": 44100,
"channels": 2,
"bitDepth": 16,
"audioCodec": "FLAC",
"bitrate": 980,
"acoustId": "f0e1d2c3-b4a5-4c6d-8e7f-9a0b1c2d3e4f",
"replayGainTrackGain": -7.5,
"replayGainTrackPeak": 0.9877,
"replayGainAlbumGain": -6.8,
"replayGainAlbumPeak": 0.9999
},
"trackNumber": 1,
"discNumber": 1,
"script": "Latn",
"key": "CMajor",
"bpm": 72,
"work": "Bohemian Rhapsody",
"work": {
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
"title": "Bohemian Rhapsody",
"type": "Song",
"languages": [
{ "languageCode": "en", "languageName": "English", "nativeName": "English" }
],
"iswcs": []
},
"musicBrainzRecordingId": "d4e5f6a7-b8c9-4d0e-1f2a-3b4c5d6e7f8a",
"musicBrainzTrackId": "e5f6a7b8-c9d0-4e1f-2a3b-4c5d6e7f8a9b",
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
"moods": [
{ "name": "dramatic" },
{ "name": "anxious" }
],
"isrcs": [
{ "value": "GBUM71029604" }
],
"contributors": [
{ "contributorId": "6a3f0c2d-1b4e-4f5a-8c6d-9e0f1a2b3c4d", "role": "Vocals" },
{ "contributorId": "7b4e1d3f-2c5a-4e6b-9d7e-0f1a2b3c4d5e", "role": "Guitar" }
@@ -128,13 +155,6 @@ Content-Type: application/json
"source": "LastFm",
"voteCount": 1234
}
],
"moods": [
{ "name": "dramatic" },
{ "name": "anxious" }
],
"isrcs": [
{ "value": "GBUM71029604" }
]
},
{
@@ -143,12 +163,7 @@ Content-Type: application/json
"title": "You're My Best Friend",
"originalTitle": "You're My Best Friend",
"description": "A song by the British rock band Queen, written by bass guitarist John Deacon. It was originally released on the album A Night at the Opera in 1975 and as a single in 1976.",
"durationInSeconds": 181,
"sampleRate": 44100,
"channels": 2,
"bitDepth": 16,
"audioCodec": "FLAC",
"bitrate": 912,
"disambiguation": null,
"releaseInfo": {
"originalReleaseDate": "1976-06-18",
"originalReleaseYear": 1976,
@@ -167,24 +182,50 @@ Content-Type: application/json
"languageName": "English",
"nativeName": "English"
},
"tags": [
{ "name": "classic" },
{ "name": "love" }
],
"genres": [
{ "name": "Rock" },
{ "name": "Pop Rock" }
],
"tags": [
{ "name": "classic" },
{ "name": "love" }
]
"isVideo": false,
"durationInSeconds": 181,
"sampleRate": 44100,
"channels": 2,
"bitDepth": 16,
"audioCodec": "FLAC",
"bitrate": 912,
"acoustId": null,
"replayGainTrackGain": null,
"replayGainTrackPeak": null,
"replayGainAlbumGain": null,
"replayGainAlbumPeak": null
},
"trackNumber": 7,
"discNumber": 1,
"script": "Latn",
"key": "BMajor",
"bpm": 118,
"work": "You're My Best Friend",
"work": {
"musicBrainzWorkId": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
"title": "You're My Best Friend",
"type": "Song",
"languages": [
{ "languageCode": "en", "languageName": "English", "nativeName": "English" }
],
"iswcs": []
},
"musicBrainzRecordingId": "0f3e4d5c-6b7a-4f8e-9d0c-1b2a3c4d5e6f",
"musicBrainzTrackId": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"musicBrainzWorkId": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
"moods": [
{ "name": "happy" },
{ "name": "warm" }
],
"isrcs": [
{ "value": "GBUM71029609" }
],
"contributors": [
{ "contributorId": "6a3f0c2d-1b4e-4f5a-8c6d-9e0f1a2b3c4d", "role": "Vocals" },
{ "contributorId": "8c5f2e4a-3d6b-4f7c-ae8f-1a2b3c4d5e6f", "role": "BassGuitar" }
@@ -202,13 +243,6 @@ Content-Type: application/json
"source": "LastFm",
"voteCount": 567
}
],
"moods": [
{ "name": "happy" },
{ "name": "warm" }
],
"isrcs": [
{ "value": "GBUM71029609" }
]
}
]
@@ -7,6 +7,7 @@ Content-Type: application/json
"title": "A Night at the Opera",
"originalTitle": "A Night at the Opera",
"description": "The fourth studio album by the British rock band Queen, released in 1975. It was the most expensive album ever recorded at the time of its release.",
"disambiguation": null,
"releaseInfo": {
"originalReleaseDate": "1975-11-21",
"originalReleaseYear": 1975,
@@ -15,10 +16,6 @@ Content-Type: application/json
"releaseCountry": "GB",
"releaseVersion": "Remastered"
},
"releaseType": "Album",
"releaseStatus": "Official",
"totalDiscs": 1,
"totalTracks": 12,
"language": {
"languageCode": "en",
"languageName": "English",
@@ -29,18 +26,27 @@ Content-Type: application/json
"languageName": "English",
"nativeName": "English"
},
"tags": [
{ "name": "classic" },
{ "name": "vinyl" }
],
"genres": [
{ "name": "Rock" },
{ "name": "Progressive Rock" }
],
"tags": [
{ "name": "classic" },
{ "name": "vinyl" }
]
"script": "Latn",
"releaseTypes": [ "Album" ],
"releaseStatus": "Official",
"totalDiscs": 1,
"totalTracks": 12,
"releaseTitle": "A Night at the Opera"
},
"mediaFormat": "CD",
"packaging": "JewelCase",
"barcode": "0042282778329",
"catalogNumber": "EMC 4008",
"catalogNumbers": ["EMC 4008"],
"label": "EMI",
"asin": "B000000000",
"musicBrainzReleaseId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"musicBrainzReleaseGroupId": "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e",
"musicBrainzReleaseArtistId": "c3d4e5f6-a7b8-4c9d-0e1f-2a3b4c5d6e7f",
@@ -3,19 +3,68 @@ Authorization: Bearer {{ACCESS_TOKEN}}
Content-Type: application/json
{
"name": "Queen",
"metadata": {
"name": "Queen",
"sortName": "Queen",
"disambiguation": null,
"type": "Group",
"gender": null,
"country": "GB",
"area": {
"musicBrainzAreaId": "7f2a1b3c-4d5e-4f6a-8b9c-0d1e2f3a4b5c",
"name": "United Kingdom",
"sortName": "United Kingdom",
"disambiguation": null,
"type": "Country",
"iso3166Code": "GB"
},
"beginArea": null,
"endArea": null,
"lifeSpanBegin": "1970-06-27",
"lifeSpanEnd": null,
"isEnded": false,
"genres": [
{ "name": "Rock" }
],
"tags": [
{ "name": "classic" }
],
"aliases": [
{
"name": "Queen",
"sortName": "Queen",
"type": "Artist name",
"locale": "en",
"isPrimary": true,
"beginDate": "1970-06-27",
"endDate": null,
"isEnded": false
}
]
},
"website": "https://www.queenonline.com",
"musicBrainzArtistId": "6f9c0b2a-1d3e-4a5b-8c7d-9e0f1a2b3c4d",
"ipis": [],
"isnis": [],
"contributors": [
{ "contributorId": "6a3f0c2d-1b4e-4f5a-8c6d-9e0f1a2b3c4d", "role": "Vocals" },
{ "contributorId": "7b4e1d3f-2c5a-4e6b-9d7e-0f1a2b3c4d5e", "role": "Guitar" }
],
"ratings": [
{
"value": 4.5,
"maxValue": 5,
"source": "MusicBrainz",
"voteCount": 2345
}
],
"albums": [
{
"metadata": {
"title": "A Night at the Opera",
"originalTitle": "A Night at the Opera",
"description": "The fourth studio album by the British rock band Queen, released in 1975. It was the most expensive album ever recorded at the time of its release.",
"disambiguation": null,
"releaseInfo": {
"originalReleaseDate": "1975-11-21",
"originalReleaseYear": 1975,
@@ -42,14 +91,19 @@ Content-Type: application/json
{ "name": "Rock" },
{ "name": "Progressive Rock" }
],
"releaseType": "Album",
"script": "Latn",
"releaseTypes": [ "Album" ],
"releaseStatus": "Official",
"totalDiscs": 1,
"totalTracks": 12
"totalTracks": 12,
"releaseTitle": "A Night at the Opera"
},
"mediaFormat": "CD",
"packaging": "JewelCase",
"barcode": "0042282778329",
"catalogNumber": "EMC 4008",
"catalogNumbers": ["EMC 4008"],
"label": "EMI",
"asin": "B000000000",
"musicBrainzReleaseId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"musicBrainzReleaseGroupId": "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e",
"musicBrainzReleaseArtistId": "c3d4e5f6-a7b8-4c9d-0e1f-2a3b4c5d6e7f",
@@ -78,6 +132,7 @@ Content-Type: application/json
"title": "Bohemian Rhapsody",
"originalTitle": "Bohemian Rhapsody",
"description": "A song by the British rock band Queen. It was written by Freddie Mercury and originally released on the album A Night at the Opera in 1975.",
"disambiguation": null,
"releaseInfo": {
"originalReleaseDate": "1975-10-31",
"originalReleaseYear": 1975,
@@ -104,22 +159,35 @@ Content-Type: application/json
{ "name": "Rock" },
{ "name": "Progressive Rock" }
],
"isVideo": false,
"durationInSeconds": 354,
"sampleRate": 44100,
"channels": 2,
"bitDepth": 16,
"audioCodec": "FLAC",
"bitrate": 980
"bitrate": 980,
"acoustId": "f0e1d2c3-b4a5-4c6d-8e7f-9a0b1c2d3e4f",
"replayGainTrackGain": -7.5,
"replayGainTrackPeak": 0.9877,
"replayGainAlbumGain": -6.8,
"replayGainAlbumPeak": 0.9999
},
"trackNumber": 1,
"discNumber": 1,
"script": "Latn",
"key": "CMajor",
"bpm": 72,
"work": "Bohemian Rhapsody",
"work": {
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
"title": "Bohemian Rhapsody",
"type": "Song",
"languages": [
{ "languageCode": "en", "languageName": "English", "nativeName": "English" }
],
"iswcs": []
},
"musicBrainzRecordingId": "d4e5f6a7-b8c9-4d0e-1f2a-3b4c5d6e7f8a",
"musicBrainzTrackId": "e5f6a7b8-c9d0-4e1f-2a3b-4c5d6e7f8a9b",
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
"moods": [
{ "name": "dramatic" },
{ "name": "anxious" }
@@ -152,6 +220,7 @@ Content-Type: application/json
"title": "You're My Best Friend",
"originalTitle": "You're My Best Friend",
"description": "A song by the British rock band Queen, written by bass guitarist John Deacon. It was originally released on the album A Night at the Opera in 1975 and as a single in 1976.",
"disambiguation": null,
"releaseInfo": {
"originalReleaseDate": "1976-06-18",
"originalReleaseYear": 1976,
@@ -178,22 +247,35 @@ Content-Type: application/json
{ "name": "Rock" },
{ "name": "Pop Rock" }
],
"isVideo": false,
"durationInSeconds": 181,
"sampleRate": 44100,
"channels": 2,
"bitDepth": 16,
"audioCodec": "FLAC",
"bitrate": 912
"bitrate": 912,
"acoustId": null,
"replayGainTrackGain": null,
"replayGainTrackPeak": null,
"replayGainAlbumGain": null,
"replayGainAlbumPeak": null
},
"trackNumber": 7,
"discNumber": 1,
"script": "Latn",
"key": "BMajor",
"bpm": 118,
"work": "You're My Best Friend",
"work": {
"musicBrainzWorkId": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
"title": "You're My Best Friend",
"type": "Song",
"languages": [
{ "languageCode": "en", "languageName": "English", "nativeName": "English" }
],
"iswcs": []
},
"musicBrainzRecordingId": "0f3e4d5c-6b7a-4f8e-9d0c-1b2a3c4d5e6f",
"musicBrainzTrackId": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"musicBrainzWorkId": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
"moods": [
{ "name": "happy" },
{ "name": "warm" }
@@ -3,13 +3,61 @@ Authorization: Bearer {{ACCESS_TOKEN}}
Content-Type: application/json
{
"name": "Queen",
"metadata": {
"name": "Queen",
"sortName": "Queen",
"disambiguation": null,
"type": "Group",
"gender": null,
"country": "GB",
"area": {
"musicBrainzAreaId": "7f2a1b3c-4d5e-4f6a-8b9c-0d1e2f3a4b5c",
"name": "United Kingdom",
"sortName": "United Kingdom",
"disambiguation": null,
"type": "Country",
"iso3166Code": "GB"
},
"beginArea": null,
"endArea": null,
"lifeSpanBegin": "1970-06-27",
"lifeSpanEnd": null,
"isEnded": false,
"genres": [
{ "name": "Rock" }
],
"tags": [
{ "name": "classic" }
],
"aliases": [
{
"name": "Queen",
"sortName": "Queen",
"type": "Artist name",
"locale": "en",
"isPrimary": true,
"beginDate": "1970-06-27",
"endDate": null,
"isEnded": false
}
]
},
"website": "https://www.queenonline.com",
"musicBrainzArtistId": "6f9c0b2a-1d3e-4a5b-8c7d-9e0f1a2b3c4d",
"ipis": [],
"isnis": [],
"contributors": [
{ "contributorId": "6a3f0c2d-1b4e-4f5a-8c6d-9e0f1a2b3c4d", "role": "Vocals" },
{ "contributorId": "7b4e1d3f-2c5a-4e6b-9d7e-0f1a2b3c4d5e", "role": "Guitar" }
],
"ratings": [
{
"value": 4.5,
"maxValue": 5,
"source": "MusicBrainz",
"voteCount": 2345
}
],
"albums": [
{
"albumId": "e8d52f7b-0a3c-4c2d-ab4f-8a7b6c5d4e3f",
@@ -17,6 +65,7 @@ Content-Type: application/json
"title": "A Night at the Opera",
"originalTitle": "A Night at the Opera",
"description": "The fourth studio album by the British rock band Queen, released in 1975. It was the most expensive album ever recorded at the time of its release.",
"disambiguation": null,
"releaseInfo": {
"originalReleaseDate": "1975-11-21",
"originalReleaseYear": 1975,
@@ -43,14 +92,19 @@ Content-Type: application/json
{ "name": "Rock" },
{ "name": "Progressive Rock" }
],
"releaseType": "Album",
"script": "Latn",
"releaseTypes": [ "Album" ],
"releaseStatus": "Official",
"totalDiscs": 1,
"totalTracks": 12
"totalTracks": 12,
"releaseTitle": "A Night at the Opera"
},
"mediaFormat": "CD",
"packaging": "JewelCase",
"barcode": "0042282778329",
"catalogNumber": "EMC 4008",
"catalogNumbers": ["EMC 4008"],
"label": "EMI",
"asin": "B000000000",
"musicBrainzReleaseId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"musicBrainzReleaseGroupId": "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e",
"musicBrainzReleaseArtistId": "c3d4e5f6-a7b8-4c9d-0e1f-2a3b4c5d6e7f",
@@ -80,6 +134,7 @@ Content-Type: application/json
"title": "Bohemian Rhapsody",
"originalTitle": "Bohemian Rhapsody",
"description": "A song by the British rock band Queen. It was written by Freddie Mercury and originally released on the album A Night at the Opera in 1975.",
"disambiguation": null,
"releaseInfo": {
"originalReleaseDate": "1975-10-31",
"originalReleaseYear": 1975,
@@ -106,22 +161,35 @@ Content-Type: application/json
{ "name": "Rock" },
{ "name": "Progressive Rock" }
],
"isVideo": false,
"durationInSeconds": 354,
"sampleRate": 44100,
"channels": 2,
"bitDepth": 16,
"audioCodec": "FLAC",
"bitrate": 980
"bitrate": 980,
"acoustId": "f0e1d2c3-b4a5-4c6d-8e7f-9a0b1c2d3e4f",
"replayGainTrackGain": -7.5,
"replayGainTrackPeak": 0.9877,
"replayGainAlbumGain": -6.8,
"replayGainAlbumPeak": 0.9999
},
"trackNumber": 1,
"discNumber": 1,
"script": "Latn",
"key": "CMajor",
"bpm": 72,
"work": "Bohemian Rhapsody",
"work": {
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
"title": "Bohemian Rhapsody",
"type": "Song",
"languages": [
{ "languageCode": "en", "languageName": "English", "nativeName": "English" }
],
"iswcs": []
},
"musicBrainzRecordingId": "d4e5f6a7-b8c9-4d0e-1f2a-3b4c5d6e7f8a",
"musicBrainzTrackId": "e5f6a7b8-c9d0-4e1f-2a3b-4c5d6e7f8a9b",
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
"moods": [
{ "name": "dramatic" },
{ "name": "anxious" }
@@ -155,6 +223,7 @@ Content-Type: application/json
"title": "You're My Best Friend",
"originalTitle": "You're My Best Friend",
"description": "A song by the British rock band Queen, written by bass guitarist John Deacon. It was originally released on the album A Night at the Opera in 1975 and as a single in 1976.",
"disambiguation": null,
"releaseInfo": {
"originalReleaseDate": "1976-06-18",
"originalReleaseYear": 1976,
@@ -181,22 +250,35 @@ Content-Type: application/json
{ "name": "Rock" },
{ "name": "Pop Rock" }
],
"isVideo": false,
"durationInSeconds": 181,
"sampleRate": 44100,
"channels": 2,
"bitDepth": 16,
"audioCodec": "FLAC",
"bitrate": 912
"bitrate": 912,
"acoustId": null,
"replayGainTrackGain": null,
"replayGainTrackPeak": null,
"replayGainAlbumGain": null,
"replayGainAlbumPeak": null
},
"trackNumber": 7,
"discNumber": 1,
"script": "Latn",
"key": "BMajor",
"bpm": 118,
"work": "You're My Best Friend",
"work": {
"musicBrainzWorkId": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
"title": "You're My Best Friend",
"type": "Song",
"languages": [
{ "languageCode": "en", "languageName": "English", "nativeName": "English" }
],
"iswcs": []
},
"musicBrainzRecordingId": "0f3e4d5c-6b7a-4f8e-9d0c-1b2a3c4d5e6f",
"musicBrainzTrackId": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"musicBrainzWorkId": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
"moods": [
{ "name": "happy" },
{ "name": "warm" }
@@ -8,12 +8,7 @@ Content-Type: application/json
"title": "Bohemian Rhapsody",
"originalTitle": "Bohemian Rhapsody",
"description": "A song by the British rock band Queen. It was written by Freddie Mercury and originally released on the album A Night at the Opera in 1975.",
"durationInSeconds": 354,
"sampleRate": 44100,
"channels": 2,
"bitDepth": 16,
"audioCodec": "FLAC",
"bitrate": 980,
"disambiguation": null,
"releaseInfo": {
"originalReleaseDate": "1975-10-31",
"originalReleaseYear": 1975,
@@ -32,24 +27,43 @@ Content-Type: application/json
"languageName": "English",
"nativeName": "English"
},
"tags": [
{ "name": "classic" },
{ "name": "epic" }
],
"genres": [
{ "name": "Rock" },
{ "name": "Progressive Rock" }
],
"tags": [
{ "name": "classic" },
{ "name": "epic" }
]
"isVideo": false,
"durationInSeconds": 354,
"sampleRate": 44100,
"channels": 2,
"bitDepth": 16,
"audioCodec": "FLAC",
"bitrate": 980,
"acoustId": "f0e1d2c3-b4a5-4c6d-8e7f-9a0b1c2d3e4f",
"replayGainTrackGain": -7.5,
"replayGainTrackPeak": 0.9877,
"replayGainAlbumGain": -6.8,
"replayGainAlbumPeak": 0.9999
},
"trackNumber": 1,
"discNumber": 1,
"script": "Latn",
"key": "CMajor",
"bpm": 72,
"work": "Bohemian Rhapsody",
"work": {
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
"title": "Bohemian Rhapsody",
"type": "Song",
"languages": [
{ "languageCode": "en", "languageName": "English", "nativeName": "English" }
],
"iswcs": []
},
"musicBrainzRecordingId": "d4e5f6a7-b8c9-4d0e-1f2a-3b4c5d6e7f8a",
"musicBrainzTrackId": "e5f6a7b8-c9d0-4e1f-2a3b-4c5d6e7f8a9b",
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
"moods": [
{ "name": "dramatic" },
{ "name": "anxious" }
@@ -8,12 +8,7 @@ Content-Type: application/json
"title": "Bohemian Rhapsody",
"originalTitle": "Bohemian Rhapsody",
"description": "A song by the British rock band Queen. It was written by Freddie Mercury and originally released on the album A Night at the Opera in 1975.",
"durationInSeconds": 354,
"sampleRate": 44100,
"channels": 2,
"bitDepth": 16,
"audioCodec": "FLAC",
"bitrate": 980,
"disambiguation": null,
"releaseInfo": {
"originalReleaseDate": "1975-10-31",
"originalReleaseYear": 1975,
@@ -32,24 +27,43 @@ Content-Type: application/json
"languageName": "English",
"nativeName": "English"
},
"tags": [
{ "name": "classic" },
{ "name": "epic" }
],
"genres": [
{ "name": "Rock" },
{ "name": "Progressive Rock" }
],
"tags": [
{ "name": "classic" },
{ "name": "epic" }
]
"isVideo": false,
"durationInSeconds": 354,
"sampleRate": 44100,
"channels": 2,
"bitDepth": 16,
"audioCodec": "FLAC",
"bitrate": 980,
"acoustId": "f0e1d2c3-b4a5-4c6d-8e7f-9a0b1c2d3e4f",
"replayGainTrackGain": -7.5,
"replayGainTrackPeak": 0.9877,
"replayGainAlbumGain": -6.8,
"replayGainAlbumPeak": 0.9999
},
"trackNumber": 1,
"discNumber": 1,
"script": "Latn",
"key": "CMajor",
"bpm": 72,
"work": "Bohemian Rhapsody",
"work": {
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
"title": "Bohemian Rhapsody",
"type": "Song",
"languages": [
{ "languageCode": "en", "languageName": "English", "nativeName": "English" }
],
"iswcs": []
},
"musicBrainzRecordingId": "d4e5f6a7-b8c9-4d0e-1f2a-3b4c5d6e7f8a",
"musicBrainzTrackId": "e5f6a7b8-c9d0-4e1f-2a3b-4c5d6e7f8a9b",
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
"moods": [
{ "name": "dramatic" },
{ "name": "anxious" }
@@ -5,7 +5,7 @@ Content-Type: application/json
{
"pluginId": "{{$guid}}",
"settings": {
"language": "en",
"includeSeries": "true"
"BaseUrl": "https://musicbrainz.org/ws/2/",
"SearchResultLimit": "25"
}
}