mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-20 06:30:57 +01:00
Clean up EnumFlags serialization
This commit is contained in:
@@ -915,13 +915,13 @@ namespace MediaBrowser.Model.Dlna
|
||||
}
|
||||
|
||||
_logger.LogInformation(
|
||||
"Transcode Result for Profile: {0}, Path: {1}, PlayMethod: {2}, AudioStreamIndex: {3}, SubtitleStreamIndex: {4}, Reasons: {5}",
|
||||
options.Profile.Name ?? "Anonymous Profile",
|
||||
"Transcode Result for Profile: {Profile}, Path: {Path}, PlayMethod: {PlayMethod}, AudioStreamIndex: {AudioStreamIndex}, SubtitleStreamIndex: {SubtitleStreamIndex}, Reasons: {TranscodeReason}",
|
||||
options.Profile?.Name ?? "Anonymous Profile",
|
||||
item.Path ?? "Unknown path",
|
||||
playlistItem.PlayMethod,
|
||||
audioStream.Index,
|
||||
playlistItem.SubtitleStreamIndex,
|
||||
playlistItem.TranscodeReasons);
|
||||
playlistItem?.PlayMethod,
|
||||
audioStream?.Index,
|
||||
playlistItem?.SubtitleStreamIndex,
|
||||
playlistItem?.TranscodeReasons);
|
||||
}
|
||||
|
||||
private static int GetDefaultAudioBitrate(string audioCodec, int? audioChannels)
|
||||
|
||||
@@ -798,7 +798,7 @@ namespace MediaBrowser.Model.Dlna
|
||||
|
||||
if (!item.IsDirectStream)
|
||||
{
|
||||
list.Add(new NameValuePair("TranscodeReasons", item.TranscodeReasons.Serialize()));
|
||||
list.Add(new NameValuePair("TranscodeReasons", item.TranscodeReasons.ToString()));
|
||||
}
|
||||
|
||||
return list;
|
||||
|
||||
Reference in New Issue
Block a user