mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 21:03:17 -07:00
Another null check
This commit is contained in:
parent
cfd01fa86e
commit
98662ab74e
1 changed files with 3 additions and 1 deletions
|
@ -154,7 +154,9 @@ namespace PlexRequests.UI.Helpers
|
||||||
{
|
{
|
||||||
// Show Exists
|
// Show Exists
|
||||||
// Look up all episodes
|
// Look up all episodes
|
||||||
var episodes = SonarrApi.GetEpisodes(selectedSeries.id.ToString(), sonarrSettings.ApiKey, sonarrSettings.FullUri).ToList();
|
var ep = SonarrApi.GetEpisodes(selectedSeries.id.ToString(), sonarrSettings.ApiKey, sonarrSettings.FullUri);
|
||||||
|
var episodes = ep?.ToList() ?? new List<SonarrEpisodes>();
|
||||||
|
|
||||||
var internalEpisodeIds = new List<int>();
|
var internalEpisodeIds = new List<int>();
|
||||||
var tasks = new List<Task>();
|
var tasks = new List<Task>();
|
||||||
foreach (var r in model.Episodes)
|
foreach (var r in model.Episodes)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue