mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-14 01:02:57 -07:00
Fixed an issue where we would add the Sickrage series but it would fail on adding the seasons.
This commit is contained in:
parent
5d1b335d6c
commit
f0d44b2788
5 changed files with 18 additions and 22 deletions
|
@ -132,9 +132,16 @@ namespace PlexRequests.Api
|
|||
request.AddUrlSegment("apiKey", apiKey);
|
||||
request.AddQueryParameter("tvdbid", tvdbId.ToString());
|
||||
|
||||
var obj = Api.ExecuteJson<SickRageSeasonList>(request, baseUrl);
|
||||
|
||||
return obj;
|
||||
try
|
||||
{
|
||||
var obj = Api.ExecuteJson<SickRageSeasonList>(request, baseUrl);
|
||||
return obj;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Log.Error(e);
|
||||
return new SickRageSeasonList();
|
||||
}
|
||||
}
|
||||
|
||||
public async Task<SickRageTvAdd> AddSeason(int tvdbId, int season, string apiKey, Uri baseUrl)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue