From 554d1b2ca8868e7aeb1fa9acac75cb8ce423796a Mon Sep 17 00:00:00 2001 From: Stanislav Ionascu Date: Tue, 4 Jan 2022 21:52:52 +0000 Subject: Fix #7100 by catching the exception on opening invalid UDF images When an invalid UDF image is opened by the UdfReader, it may throw and exception. This change is to catch and log the exception. --- Emby.Server.Implementations/Library/Resolvers/TV/EpisodeResolver.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Emby.Server.Implementations/Library/Resolvers/TV') diff --git a/Emby.Server.Implementations/Library/Resolvers/TV/EpisodeResolver.cs b/Emby.Server.Implementations/Library/Resolvers/TV/EpisodeResolver.cs index be99056470..bfa73af2f4 100644 --- a/Emby.Server.Implementations/Library/Resolvers/TV/EpisodeResolver.cs +++ b/Emby.Server.Implementations/Library/Resolvers/TV/EpisodeResolver.cs @@ -6,6 +6,7 @@ using Emby.Naming.Common; using MediaBrowser.Controller.Entities.TV; using MediaBrowser.Controller.Library; using MediaBrowser.Model.Entities; +using Microsoft.Extensions.Logging; namespace Emby.Server.Implementations.Library.Resolvers.TV { @@ -17,9 +18,10 @@ namespace Emby.Server.Implementations.Library.Resolvers.TV /// /// Initializes a new instance of the class. /// + /// The logger. /// The naming options. - public EpisodeResolver(NamingOptions namingOptions) - : base(namingOptions) + public EpisodeResolver(ILogger logger, NamingOptions namingOptions) + : base(logger, namingOptions) { } -- cgit v1.2.3