Increased the delay for the Episode information api calls. #1163

Fixed the issue with notifications being slightly borked #1263

Fixed the issue for Radarr, the api changed again #1263
This commit is contained in:
tidusjar 2017-03-17 20:58:53 +00:00
commit 2d0297231d
6 changed files with 13 additions and 10 deletions

View file

@ -154,7 +154,7 @@ namespace Ombi.Services.Jobs.RecentlyAddedNewsletter
Ombi.Api.Models.Emby.EmbyMediaType.Episode,
embySettings.ApiKey, embySettings.AdministratorId, embySettings.FullUri);
episodeList.Add(epInfo.EpisodeInformation);
Thread.Sleep(200); // Let's not try and overload the server
Thread.Sleep(600); // Let's not try and overload the server
}
item.EpisodeInformation = episodeList;
}
@ -162,7 +162,7 @@ namespace Ombi.Services.Jobs.RecentlyAddedNewsletter
{
Log.Error(
"Failed getting episode information, we may have overloaded Emby's api... Waiting and we will skip this one and go to the next");
Thread.Sleep(500);
Thread.Sleep(1000);
}
}