!minor fix a small bug in the sonarr api

This commit is contained in:
tidusjar 2017-10-01 21:14:26 +01:00
commit 96e7805eb9

View file

@ -45,7 +45,10 @@ namespace Ombi.Api.Sonarr
foreach (var s in results)
{
s.seasons.ToList().RemoveAt(0);
if (s.seasons.Length > 0)
{
s.seasons.ToList().RemoveAt(0);
}
}
return results;
}