mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 14:11:10 +00:00
Captures the audio container of the music tracks
Adds a Container to the audio metadata, captured with TagLibSharp from the concrete type of the parsed file during the music library scan and stored on the track through a new column and an EF migration. The container is refreshed when a file changes, survives track and artist edits and provider enrichment, and is exposed read-only in the track responses, never settable through a request. Extracts the container resolution into a testable resolver used by the scan pipeline and the ID3 plugin, refuses to read a file that is itself a reparse point during extraction, and updates the endpoint summaries, the API and domain documentation, and the tests.
This commit is contained in:
1 parent
4ffa81fffe
commit
f29f89f31f
60 files changed
+4483
-68
No files matched your search
+2
@@ -460,6 +460,7 @@ public class AddAlbumEndpointSummary : Summary<AddAlbumEndpoint, AddAlbumRequest
|
||||
AlbumId: albumId,
|
||||
LibraryId: libraryId,
|
||||
Path: "/music/queen/a-night-at-the-opera/01-bohemian-rhapsody.flac",
|
||||
Container: "FLAC",
|
||||
Metadata: new(
|
||||
Title: "Bohemian Rhapsody",
|
||||
OriginalTitle: "Bohemian Rhapsody",
|
||||
@@ -552,6 +553,7 @@ public class AddAlbumEndpointSummary : Summary<AddAlbumEndpoint, AddAlbumRequest
|
||||
AlbumId: albumId,
|
||||
LibraryId: libraryId,
|
||||
Path: "/music/queen/a-night-at-the-opera/07-youre-my-best-friend.flac",
|
||||
Container: "FLAC",
|
||||
Metadata: new(
|
||||
Title: "You're My Best Friend",
|
||||
OriginalTitle: "You're My Best Friend",
|
||||
|
||||
+2
@@ -152,6 +152,7 @@ public class GetAlbumEndpointSummary : Summary<GetAlbumEndpoint, EmptyRequest>
|
||||
AlbumId: Guid.NewGuid(),
|
||||
LibraryId: Guid.NewGuid(),
|
||||
Path: "/music/queen/a-night-at-the-opera/01-bohemian-rhapsody.flac",
|
||||
Container: "FLAC",
|
||||
Metadata: new(
|
||||
Title: "Bohemian Rhapsody",
|
||||
OriginalTitle: "Bohemian Rhapsody",
|
||||
@@ -244,6 +245,7 @@ public class GetAlbumEndpointSummary : Summary<GetAlbumEndpoint, EmptyRequest>
|
||||
AlbumId: Guid.NewGuid(),
|
||||
LibraryId: Guid.NewGuid(),
|
||||
Path: "/music/queen/a-night-at-the-opera/07-youre-my-best-friend.flac",
|
||||
Container: "FLAC",
|
||||
Metadata: new(
|
||||
Title: "You're My Best Friend",
|
||||
OriginalTitle: "You're My Best Friend",
|
||||
|
||||
+3
@@ -33,6 +33,7 @@ public class GetAlbumTracksEndpointSummary : Summary<GetAlbumTracksEndpoint, Emp
|
||||
ResponseParam<TrackResponse>(r => r.AlbumId, "The Id of the album the track belongs to.");
|
||||
ResponseParam<TrackResponse>(r => r.LibraryId, "The Id of the media library the track belongs to.");
|
||||
ResponseParam<TrackResponse>(r => r.Path, "The file system path of the track.");
|
||||
ResponseParam<TrackResponse>(r => r.Container, "The container of the audio file of the track, if applicable.");
|
||||
ResponseParam<TrackResponse>(r => r.Metadata!.Title, "The title of the track.");
|
||||
ResponseParam<TrackResponse>(r => r.Metadata!.OriginalTitle, "The original title of the track, if applicable.");
|
||||
ResponseParam<TrackResponse>(r => r.Metadata!.Description, "The description of the track, if applicable.");
|
||||
@@ -80,6 +81,7 @@ public class GetAlbumTracksEndpointSummary : Summary<GetAlbumTracksEndpoint, Emp
|
||||
AlbumId: Guid.NewGuid(),
|
||||
LibraryId: Guid.NewGuid(),
|
||||
Path: "/music/queen/a-night-at-the-opera/01-bohemian-rhapsody.flac",
|
||||
Container: "FLAC",
|
||||
Metadata: new MusicTrackMetadataDto(
|
||||
Title: "Bohemian Rhapsody",
|
||||
OriginalTitle: "Bohemian Rhapsody",
|
||||
@@ -172,6 +174,7 @@ public class GetAlbumTracksEndpointSummary : Summary<GetAlbumTracksEndpoint, Emp
|
||||
AlbumId: Guid.NewGuid(),
|
||||
LibraryId: Guid.NewGuid(),
|
||||
Path: "/music/queen/a-night-at-the-opera/02-youre-my-best-friend.flac",
|
||||
Container: "FLAC",
|
||||
Metadata: new MusicTrackMetadataDto(
|
||||
Title: "You're My Best Friend",
|
||||
OriginalTitle: "You're My Best Friend",
|
||||
|
||||
+2
@@ -264,6 +264,7 @@ public class UpdateAlbumEndpointSummary : Summary<UpdateAlbumEndpoint, UpdateAlb
|
||||
AlbumId: Guid.NewGuid(),
|
||||
LibraryId: Guid.NewGuid(),
|
||||
Path: "/music/queen/a-night-at-the-opera/01-bohemian-rhapsody.flac",
|
||||
Container: "FLAC",
|
||||
Metadata: new(
|
||||
Title: "Bohemian Rhapsody",
|
||||
OriginalTitle: "Bohemian Rhapsody",
|
||||
@@ -356,6 +357,7 @@ public class UpdateAlbumEndpointSummary : Summary<UpdateAlbumEndpoint, UpdateAlb
|
||||
AlbumId: Guid.NewGuid(),
|
||||
LibraryId: Guid.NewGuid(),
|
||||
Path: "/music/queen/a-night-at-the-opera/07-youre-my-best-friend.flac",
|
||||
Container: "FLAC",
|
||||
Metadata: new(
|
||||
Title: "You're My Best Friend",
|
||||
OriginalTitle: "You're My Best Friend",
|
||||
|
||||
+2
@@ -633,6 +633,7 @@ public class AddArtistEndpointSummary : Summary<AddArtistEndpoint, AddArtistRequ
|
||||
AlbumId: albumId,
|
||||
LibraryId: libraryId,
|
||||
Path: "/music/queen/a-night-at-the-opera/01-bohemian-rhapsody.flac",
|
||||
Container: "FLAC",
|
||||
Metadata: new(
|
||||
Title: "Bohemian Rhapsody",
|
||||
OriginalTitle: "Bohemian Rhapsody",
|
||||
@@ -731,6 +732,7 @@ public class AddArtistEndpointSummary : Summary<AddArtistEndpoint, AddArtistRequ
|
||||
AlbumId: albumId,
|
||||
LibraryId: libraryId,
|
||||
Path: "/music/queen/a-night-at-the-opera/07-youre-my-best-friend.flac",
|
||||
Container: "FLAC",
|
||||
Metadata: new(
|
||||
Title: "You're My Best Friend",
|
||||
OriginalTitle: "You're My Best Friend",
|
||||
|
||||
+1
@@ -123,6 +123,7 @@ public class GetArtistEndpointSummary : Summary<GetArtistEndpoint, EmptyRequest>
|
||||
AlbumId: Guid.NewGuid(),
|
||||
LibraryId: Guid.NewGuid(),
|
||||
Path: "/music/queen/a-night-at-the-opera/01-bohemian-rhapsody.flac",
|
||||
Container: "FLAC",
|
||||
Metadata: new(
|
||||
Title: "Bohemian Rhapsody",
|
||||
OriginalTitle: "Bohemian Rhapsody",
|
||||
|
||||
+2
@@ -154,6 +154,7 @@ public class GetArtistAlbumsEndpointSummary : Summary<GetArtistAlbumsEndpoint, E
|
||||
AlbumId: Guid.NewGuid(),
|
||||
LibraryId: Guid.NewGuid(),
|
||||
Path: "/music/queen/a-night-at-the-opera/01-bohemian-rhapsody.flac",
|
||||
Container: "FLAC",
|
||||
Metadata: new(
|
||||
Title: "Bohemian Rhapsody",
|
||||
OriginalTitle: "Bohemian Rhapsody",
|
||||
@@ -328,6 +329,7 @@ public class GetArtistAlbumsEndpointSummary : Summary<GetArtistAlbumsEndpoint, E
|
||||
AlbumId: Guid.NewGuid(),
|
||||
LibraryId: Guid.NewGuid(),
|
||||
Path: "/music/queen/the-works/01-radio-ga-ga.flac",
|
||||
Container: "FLAC",
|
||||
Metadata: new(
|
||||
Title: "Radio Ga Ga",
|
||||
OriginalTitle: "Radio Ga Ga",
|
||||
|
||||
+2
@@ -135,6 +135,7 @@ public class GetArtistsEndpointSummary : Summary<GetArtistsEndpoint, GetArtistsR
|
||||
AlbumId: Guid.NewGuid(),
|
||||
LibraryId: Guid.NewGuid(),
|
||||
Path: "/music/queen/a-night-at-the-opera/01-bohemian-rhapsody.flac",
|
||||
Container: "FLAC",
|
||||
Metadata: new(
|
||||
Title: "Bohemian Rhapsody",
|
||||
OriginalTitle: "Bohemian Rhapsody",
|
||||
@@ -259,6 +260,7 @@ public class GetArtistsEndpointSummary : Summary<GetArtistsEndpoint, GetArtistsR
|
||||
AlbumId: Guid.NewGuid(),
|
||||
LibraryId: Guid.NewGuid(),
|
||||
Path: "/music/david-bowie/heroes/01-heroes.flac",
|
||||
Container: "FLAC",
|
||||
Metadata: new(
|
||||
Title: "Heroes",
|
||||
OriginalTitle: "Heroes",
|
||||
|
||||
+2
@@ -630,6 +630,7 @@ public class UpdateArtistEndpointSummary : Summary<UpdateArtistEndpoint, UpdateA
|
||||
AlbumId: albumId,
|
||||
LibraryId: libraryId,
|
||||
Path: "/music/queen/a-night-at-the-opera/01-bohemian-rhapsody.flac",
|
||||
Container: "FLAC",
|
||||
Metadata: new MusicTrackMetadataDto(
|
||||
Title: "Bohemian Rhapsody",
|
||||
OriginalTitle: "Bohemian Rhapsody",
|
||||
@@ -728,6 +729,7 @@ public class UpdateArtistEndpointSummary : Summary<UpdateArtistEndpoint, UpdateA
|
||||
AlbumId: albumId,
|
||||
LibraryId: libraryId,
|
||||
Path: "/music/queen/a-night-at-the-opera/07-youre-my-best-friend.flac",
|
||||
Container: "FLAC",
|
||||
Metadata: new MusicTrackMetadataDto(
|
||||
Title: "You're My Best Friend",
|
||||
OriginalTitle: "You're My Best Friend",
|
||||
|
||||
+2
@@ -170,6 +170,7 @@ public class AddTrackEndpointSummary : Summary<AddTrackEndpoint, AddTrackRequest
|
||||
ResponseParam<TrackResponse>(r => r.AlbumId, "The Id of the album the track belongs to.");
|
||||
ResponseParam<TrackResponse>(r => r.LibraryId, "The Id of the media library the track belongs to.");
|
||||
ResponseParam<TrackResponse>(r => r.Path, "The file system path of the track.");
|
||||
ResponseParam<TrackResponse>(r => r.Container, "The container of the audio file of the track, if applicable.");
|
||||
ResponseParam<TrackResponse>(r => r.Metadata!.Title, "The title of the track.");
|
||||
ResponseParam<TrackResponse>(r => r.Metadata!.OriginalTitle, "The original title of the track, if applicable.");
|
||||
ResponseParam<TrackResponse>(r => r.Metadata!.Description, "The description of the track, if applicable.");
|
||||
@@ -215,6 +216,7 @@ public class AddTrackEndpointSummary : Summary<AddTrackEndpoint, AddTrackRequest
|
||||
AlbumId: Guid.NewGuid(),
|
||||
LibraryId: Guid.NewGuid(),
|
||||
Path: "/music/queen/a-night-at-the-opera/01-bohemian-rhapsody.flac",
|
||||
Container: "FLAC",
|
||||
Metadata: new MusicTrackMetadataDto(
|
||||
Title: "Bohemian Rhapsody",
|
||||
OriginalTitle: "Bohemian Rhapsody",
|
||||
|
||||
+2
@@ -33,6 +33,7 @@ public class GetTrackEndpointSummary : Summary<GetTrackEndpoint, EmptyRequest>
|
||||
ResponseParam<TrackResponse>(r => r.AlbumId, "The Id of the album the track belongs to.");
|
||||
ResponseParam<TrackResponse>(r => r.LibraryId, "The Id of the media library the track belongs to.");
|
||||
ResponseParam<TrackResponse>(r => r.Path, "The file system path of the track.");
|
||||
ResponseParam<TrackResponse>(r => r.Container, "The container of the audio file of the track, if applicable.");
|
||||
ResponseParam<TrackResponse>(r => r.Metadata!.Title, "The title of the track.");
|
||||
ResponseParam<TrackResponse>(r => r.Metadata!.OriginalTitle, "The original title of the track, if applicable.");
|
||||
ResponseParam<TrackResponse>(r => r.Metadata!.Description, "The description of the track, if applicable.");
|
||||
@@ -78,6 +79,7 @@ public class GetTrackEndpointSummary : Summary<GetTrackEndpoint, EmptyRequest>
|
||||
AlbumId: Guid.NewGuid(),
|
||||
LibraryId: Guid.NewGuid(),
|
||||
Path: "/music/queen/a-night-at-the-opera/01-bohemian-rhapsody.flac",
|
||||
Container: "FLAC",
|
||||
Metadata: new MusicTrackMetadataDto(
|
||||
Title: "Bohemian Rhapsody",
|
||||
OriginalTitle: "Bohemian Rhapsody",
|
||||
|
||||
+2
@@ -168,6 +168,7 @@ public class UpdateTrackEndpointSummary : Summary<UpdateTrackEndpoint, UpdateTra
|
||||
ResponseParam<TrackResponse>(r => r.AlbumId, "The Id of the album the track belongs to.");
|
||||
ResponseParam<TrackResponse>(r => r.LibraryId, "The Id of the media library the track belongs to.");
|
||||
ResponseParam<TrackResponse>(r => r.Path, "The file system path of the track.");
|
||||
ResponseParam<TrackResponse>(r => r.Container, "The container of the audio file of the track, if applicable.");
|
||||
ResponseParam<TrackResponse>(r => r.Metadata!.Title, "The title of the track.");
|
||||
ResponseParam<TrackResponse>(r => r.Metadata!.OriginalTitle, "The original title of the track, if applicable.");
|
||||
ResponseParam<TrackResponse>(r => r.Metadata!.Description, "The description of the track, if applicable.");
|
||||
@@ -213,6 +214,7 @@ public class UpdateTrackEndpointSummary : Summary<UpdateTrackEndpoint, UpdateTra
|
||||
AlbumId: Guid.NewGuid(),
|
||||
LibraryId: Guid.NewGuid(),
|
||||
Path: "/music/queen/a-night-at-the-opera/01-bohemian-rhapsody.flac",
|
||||
Container: "FLAC",
|
||||
Metadata: new MusicTrackMetadataDto(
|
||||
Title: "Bohemian Rhapsody",
|
||||
OriginalTitle: "Bohemian Rhapsody",
|
||||
|
||||
Reference in new issue
Block a user