Merge branch 'develop' of https://github.com/tidusjar/Ombi into develop

pull/2973/head^2
Jamie Rees 6 years ago
commit b492b82e86

@ -16,6 +16,7 @@ namespace Ombi.Api.Emby.Models.Media.Tv
public int ProductionYear { get; set; } public int ProductionYear { get; set; }
public bool IsPlaceHolder { get; set; } public bool IsPlaceHolder { get; set; }
public int IndexNumber { get; set; } public int IndexNumber { get; set; }
public int? IndexNumberEnd { get; set; }
public int ParentIndexNumber { get; set; } public int ParentIndexNumber { get; set; }
public bool IsHD { get; set; } public bool IsHD { get; set; }
public bool IsFolder { get; set; } public bool IsFolder { get; set; }

@ -117,6 +117,22 @@ namespace Ombi.Schedule.Jobs.Emby
Title = ep.Name, Title = ep.Name,
AddedAt = DateTime.UtcNow AddedAt = DateTime.UtcNow
}); });
if (ep.IndexNumberEnd.HasValue && ep.IndexNumberEnd.Value != ep.IndexNumber)
{
epToAdd.Add(new EmbyEpisode
{
EmbyId = ep.Id,
EpisodeNumber = ep.IndexNumberEnd.Value,
SeasonNumber = ep.ParentIndexNumber,
ParentId = ep.SeriesId,
TvDbId = ep.ProviderIds.Tvdb,
TheMovieDbId = ep.ProviderIds.Tmdb,
ImdbId = ep.ProviderIds.Imdb,
Title = ep.Name,
AddedAt = DateTime.UtcNow
});
}
} }
} }

Loading…
Cancel
Save