Update Emby.Server.Implementations/Library/LibraryManager.cs

Co-Authored-By: Bond-009 <bond.009@outlook.com>
This commit is contained in:
Ulrich Wagner 2020-02-19 17:46:50 +01:00 committed by GitHub
parent 0f2ee2686d
commit d6971581d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2421,7 +2421,7 @@ namespace Emby.Server.Implementations.Library
// Read from metadata
var mediaInfo = _mediaEncoder.GetMediaInfo(new MediaInfoRequest
{
MediaSource = episode.GetMediaSources(false).First(),
MediaSource = episode.GetMediaSources(false)[0],
MediaType = DlnaProfileType.Video,
ExtractChapters = false
}, CancellationToken.None).GetAwaiter().GetResult();