aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Wagner <ulrich.wagner@viaregio-services.de>2020-02-19 13:37:36 +0100
committerGitHub <noreply@github.com>2020-02-19 13:37:36 +0100
commit39b6d6586f3a788860bf361dec0087ea35191687 (patch)
tree1494f05a20ba982aa7c65f17fa9d6c889a0236d0
parent5fed4d10abde3c2c7d0567c81dfd535e5d15a0f3 (diff)
Update Emby.Server.Implementations/Library/LibraryManager.cs
Co-Authored-By: Bond-009 <bond.009@outlook.com>
-rw-r--r--Emby.Server.Implementations/Library/LibraryManager.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Library/LibraryManager.cs b/Emby.Server.Implementations/Library/LibraryManager.cs
index b32e98863..a2d7f93c2 100644
--- a/Emby.Server.Implementations/Library/LibraryManager.cs
+++ b/Emby.Server.Implementations/Library/LibraryManager.cs
@@ -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