mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 12: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
@@ -34,6 +34,7 @@ namespace Lumina.Contracts.DTO.MediaLibrary.AudioLibrary.MusicLibrary;
|
||||
/// <param name="Channels">The number of audio channels of the track. Required.</param>
|
||||
/// <param name="BitDepth">The bit depth of the audio of the track. Optional.</param>
|
||||
/// <param name="AudioCodec">The audio codec used by the track. Optional.</param>
|
||||
/// <param name="Container">The container of the audio file of the track, for example MP3, FLAC, OGG, AAC, MP4 or WAV. Optional.</param>
|
||||
/// <param name="Bitrate">The bitrate of the audio of the track in kbps. Optional.</param>
|
||||
/// <param name="MusicBrainzRecordingId">The MusicBrainz identifier of the recording. Optional.</param>
|
||||
/// <param name="MusicBrainzTrackId">The MusicBrainz identifier of the track. Optional.</param>
|
||||
@@ -62,6 +63,7 @@ public sealed record AudioMetadataDto(
|
||||
int? Channels,
|
||||
int? BitDepth,
|
||||
string? AudioCodec,
|
||||
string? Container,
|
||||
int? Bitrate,
|
||||
Guid? MusicBrainzRecordingId,
|
||||
Guid? MusicBrainzTrackId,
|
||||
|
||||
+3
-1
@@ -33,6 +33,7 @@ namespace Lumina.Contracts.Responses.MediaLibrary.AudioLibrary.MusicLibrary.Trac
|
||||
/// <param name="Isrcs">The list of ISRC (International Standard Recording Code) of the track.</param>
|
||||
/// <param name="Contributors">The list of references to the media contributors that performed on the track, each with the role they played.</param>
|
||||
/// <param name="Ratings">The list of ratings for this track.</param>
|
||||
/// <param name="Container">The container of the audio file of the track, for example MP3, FLAC, OGG, AAC, MP4 or WAV, captured from the file itself. Read only, and not settable through a request. Optional.</param>
|
||||
[DebuggerDisplay("Title: {Metadata.Title}")]
|
||||
public record TrackResponse(
|
||||
Guid Id,
|
||||
@@ -53,5 +54,6 @@ public record TrackResponse(
|
||||
List<MoodDto>? Moods,
|
||||
List<IsrcDto>? Isrcs,
|
||||
List<MediaContributorReferenceDto>? Contributors,
|
||||
List<AudioRatingDto>? Ratings
|
||||
List<AudioRatingDto>? Ratings,
|
||||
string? Container = null
|
||||
);
|
||||
Reference in new issue
Block a user