mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-15 01:32:55 -07:00
I think i've fixed an issue where SickRage reports Show not found.
This commit is contained in:
parent
adfbfb54a3
commit
462eb0c9f2
2 changed files with 23 additions and 10 deletions
|
@ -92,9 +92,16 @@ namespace PlexRequests.Api
|
|||
var seasonIncrement = 0;
|
||||
var seasonList = new SickRageSeasonList();
|
||||
Log.Trace("while (seasonIncrement < seasonCount) where seasonCount = {0}", seasonCount);
|
||||
try
|
||||
{
|
||||
while (seasonIncrement < seasonCount)
|
||||
{
|
||||
seasonList = VerifyShowHasLoaded(tvdbId, apiKey, baseUrl);
|
||||
if (seasonList.result.Equals("failure"))
|
||||
{
|
||||
Thread.Sleep(3000);
|
||||
continue;
|
||||
}
|
||||
seasonIncrement = seasonList.Data?.Length ?? 0;
|
||||
Log.Trace("New seasonIncrement -> {0}", seasonIncrement);
|
||||
|
||||
|
@ -106,6 +113,12 @@ namespace PlexRequests.Api
|
|||
}
|
||||
sw.Stop();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Log.Error("Exception thrown when getting the seasonList");
|
||||
Log.Error(e);
|
||||
}
|
||||
}
|
||||
Log.Trace("seasons.Length > 0 where seasons.Len -> {0}", seasons.Length);
|
||||
try
|
||||
{
|
||||
|
|
|
@ -106,7 +106,7 @@ namespace PlexRequests.Helpers
|
|||
CreateDirs = true
|
||||
};
|
||||
config.AddTarget(fileTarget);
|
||||
var rule2 = new LoggingRule("*", LogLevel.Info, fileTarget);
|
||||
var rule2 = new LoggingRule("*", LogLevel.Trace, fileTarget);
|
||||
config.LoggingRules.Add(rule2);
|
||||
|
||||
// Step 5. Activate the configuration
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue