The Free Software Media System - Server Backend & API
Attempt #2
Bond_00984d1b12530b4
diff --git a/MediaBrowser.Api/Playback/MediaInfoService.cs b/MediaBrowser.Api/Playback/MediaInfoService.csindex 4fa0e31406..53823943f3 100644--- a/MediaBrowser.Api/Playback/MediaInfoService.cs+++ b/MediaBrowser.Api/Playback/MediaInfoService.cs@@ -264,13 +264,6 @@ namespace MediaBrowser.Api.Playbackreturn ToOptimizedResult(result);}- private T Clone<T>(T obj)- {-- var json = JsonSerializer.SerializeToUtf8Bytes(obj);- return JsonSerializer.Deserialize<T>(json);- }-private async Task<PlaybackInfoResponse> GetPlaybackInfo(Guid id, Guid userId, string[] supportedLiveMediaTypes, string mediaSourceId = null, string liveStreamId = null){var user = _userManager.GetUserById(userId);diff --git a/MediaBrowser.Model/Dto/MediaSourceInfo.cs b/MediaBrowser.Model/Dto/MediaSourceInfo.csindex 5cb0565666..16a212a81b 100644--- a/MediaBrowser.Model/Dto/MediaSourceInfo.cs+++ b/MediaBrowser.Model/Dto/MediaSourceInfo.cs@@ -76,6 +76,7 @@ namespace MediaBrowser.Model.Dto{Formats = Array.Empty<string>();MediaStreams = new List<MediaStream>();+ MediaAttachments = Array.Empty<MediaAttachment>();RequiredHttpHeaders = new Dictionary<string, string>();SupportsTranscoding = true;SupportsDirectStream = true;