You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
663 B
25 lines
663 B
using System;
|
|
using System.Runtime.CompilerServices;
|
|
using NzbDrone.Core.MediaFiles.MediaInfo;
|
|
|
|
namespace NzbDrone.Core.HealthCheck.Checks
|
|
{
|
|
public class MediaInfoDllCheck : HealthCheckBase
|
|
{
|
|
[MethodImpl(MethodImplOptions.NoOptimization)]
|
|
public override HealthCheck Check()
|
|
{
|
|
try
|
|
{
|
|
var mediaInfo = new MediaInfo();
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
return new HealthCheck(GetType(), HealthCheckResult.Warning, $"MediaInfo Library could not be loaded {e.Message}");
|
|
}
|
|
|
|
return new HealthCheck(GetType());
|
|
}
|
|
}
|
|
}
|