mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Fix testing indexers
This commit is contained in:
@@ -24,6 +24,11 @@ namespace Jackett.Models
|
|||||||
public string SearchTerm { get; set; }
|
public string SearchTerm { get; set; }
|
||||||
public string SanitizedSearchTerm { get; set; }
|
public string SanitizedSearchTerm { get; set; }
|
||||||
|
|
||||||
|
public TorznabQuery()
|
||||||
|
{
|
||||||
|
Categories = new int[0];
|
||||||
|
}
|
||||||
|
|
||||||
public string GetEpisodeSearchString()
|
public string GetEpisodeSearchString()
|
||||||
{
|
{
|
||||||
if (Season == 0)
|
if (Season == 0)
|
||||||
|
@@ -12,11 +12,14 @@ namespace Jackett
|
|||||||
class WebAPIExceptionLogger : IExceptionLogger
|
class WebAPIExceptionLogger : IExceptionLogger
|
||||||
{
|
{
|
||||||
public async Task LogAsync(ExceptionLoggerContext context, CancellationToken cancellationToken)
|
public async Task LogAsync(ExceptionLoggerContext context, CancellationToken cancellationToken)
|
||||||
|
{
|
||||||
|
// OWIN seems to give lots of these exceptions but we are not interested in them.
|
||||||
|
if (context.Exception.Message != "Error while copying content to a stream.")
|
||||||
{
|
{
|
||||||
Engine.Logger.Error("Unhandled exception: " + context.Exception.GetExceptionDetails());
|
Engine.Logger.Error("Unhandled exception: " + context.Exception.GetExceptionDetails());
|
||||||
var request = await context.Request.Content.ReadAsStringAsync();
|
var request = await context.Request.Content.ReadAsStringAsync();
|
||||||
Engine.Logger.Error("Unhandled exception url: " + context.Request.RequestUri);
|
Engine.Logger.Error("Unhandled exception url: " + context.Request.RequestUri);
|
||||||
Engine.Logger.Error("Unhandled exception request body: " + request);
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user