mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
New: NzbDrone service to automatically report errors and episode parse issues.
This commit is contained in:
parent
ea86ce2fcb
commit
174f765ec9
140 changed files with 10774 additions and 1694 deletions
30
NzbDrone.Core.Test/Services/ParseErrorServiceFixture.cs
Normal file
30
NzbDrone.Core.Test/Services/ParseErrorServiceFixture.cs
Normal file
|
@ -0,0 +1,30 @@
|
|||
using System;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using NUnit.Framework;
|
||||
using NzbDrone.Core.Test.Framework;
|
||||
|
||||
namespace NzbDrone.Core.Test.Services
|
||||
{
|
||||
[TestFixture]
|
||||
public class ParseErrorServiceFixture : CoreTest
|
||||
{
|
||||
|
||||
public ParseErrorServiceFixture()
|
||||
{
|
||||
AppDomain.CurrentDomain.AssemblyResolve +=
|
||||
new ResolveEventHandler(CurrentDomain_AssemblyResolve);
|
||||
}
|
||||
|
||||
|
||||
Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
|
||||
{
|
||||
var name = new AssemblyName(args.Name);
|
||||
if (name.Name == "Newtonsoft.Json")
|
||||
{
|
||||
return typeof(Newtonsoft.Json.JsonSerializer).Assembly;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue