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 13:37:36 +01:00 committed by GitHub
parent 5fed4d10ab
commit 39b6d6586f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2413,7 +2413,8 @@ namespace Emby.Server.Implementations.Library
try
{
var libraryOptions = GetLibraryOptions(episode);
if (libraryOptions.EnableEmbeddedEpisodeInfos && episodeInfo.Container.ToLowerInvariant() == "mp4") {
if (libraryOptions.EnableEmbeddedEpisodeInfos && string.Equals(episodeInfo.Container, "mp4", StringComparison.OrdinalIgnoreCase))
{
// Read from metadata
IMediaEncoder mediaEncoder = _appHost.Resolve<IMediaEncoder>();
var task = mediaEncoder.GetMediaInfo(new MediaInfoRequest