mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 03:26:07 +02:00
When an invalid UDF image is opened by the UdfReader, it may throw and exception. This change is to catch and log the exception.
26 lines
870 B
C#
26 lines
870 B
C#
#nullable disable
|
|
|
|
using Emby.Naming.Common;
|
|
using MediaBrowser.Controller.Entities;
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
namespace Emby.Server.Implementations.Library.Resolvers
|
|
{
|
|
/// <summary>
|
|
/// Resolves a Path into an instance of the <see cref="Video"/> class.
|
|
/// </summary>
|
|
/// <typeparam name="T">The type of item to resolve.</typeparam>
|
|
public class GenericVideoResolver<T> : BaseVideoResolver<T>
|
|
where T : Video, new()
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="GenericVideoResolver{T}"/> class.
|
|
/// </summary>
|
|
/// <param name="logger">The logger.</param>
|
|
/// <param name="namingOptions">The naming options.</param>
|
|
public GenericVideoResolver(ILogger logger, NamingOptions namingOptions)
|
|
: base(logger, namingOptions)
|
|
{
|
|
}
|
|
}
|
|
}
|