add AudioStreams to MediaInfoResource

uses ConcatToString("+"), as the backend seems to want to return only basic types (no arrays as per linting warning). is then split back into array in the frontend
pull/7671/head
Ender 2 months ago committed by GitHub
parent b7b4c0bf9d
commit a5ab93ad6e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -22,6 +22,7 @@ namespace Sonarr.Api.V3.EpisodeFiles
public string RunTime { get; set; }
public string ScanType { get; set; }
public string Subtitles { get; set; }
public string AudioStreams { get; set; }
}
public static class MediaInfoResourceMapper
@ -49,7 +50,8 @@ namespace Sonarr.Api.V3.EpisodeFiles
Resolution = $"{model.Width}x{model.Height}",
RunTime = FormatRuntime(model.RunTime),
ScanType = model.ScanType,
Subtitles = model.Subtitles.ConcatToString("/")
Subtitles = model.Subtitles.ConcatToString("/"),
AudioStreams = model.AudioStreams.ConcatToString("+")
};
}

Loading…
Cancel
Save