mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-12 16:22:55 -07:00
Fixed #3619
This commit is contained in:
parent
d8b98035de
commit
73353a6aa5
5 changed files with 21 additions and 3 deletions
|
@ -81,7 +81,7 @@ namespace Ombi.Core.Engine.V2
|
|||
|
||||
var mapped = Mapper.Map<SearchFullInfoTvShowViewModel>(show);
|
||||
|
||||
foreach (var e in show._embedded.episodes)
|
||||
foreach (var e in show._embedded?.episodes ?? new Api.TvMaze.Models.V2.Episode[0])
|
||||
{
|
||||
var season = mapped.SeasonRequests.FirstOrDefault(x => x.SeasonNumber == e.season);
|
||||
if (season == null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue