mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-11 15:56:05 -07:00
Fixed a load of bugs need to figure out what is wrong with tv requests #865
This commit is contained in:
parent
2bc916998c
commit
386f856ea7
7 changed files with 66 additions and 32 deletions
|
@ -81,6 +81,7 @@ namespace Ombi.Core.Engine
|
|||
RequestedDate = DateTime.UtcNow,
|
||||
Approved = false,
|
||||
RequestedUserId = user.Id,
|
||||
SeasonRequests = new List<SeasonRequests>()
|
||||
};
|
||||
|
||||
if (tv.LatestSeason)
|
||||
|
@ -112,13 +113,16 @@ namespace Ombi.Core.Engine
|
|||
var episodesRequests = new List<EpisodeRequests>();
|
||||
foreach (var ep in episodes)
|
||||
{
|
||||
episodesRequests.Add(new EpisodeRequests
|
||||
if (ep.season == first.season)
|
||||
{
|
||||
EpisodeNumber = ep.number,
|
||||
AirDate = DateTime.Parse(ep.airdate),
|
||||
Title = ep.name,
|
||||
Url = ep.url
|
||||
});
|
||||
episodesRequests.Add(new EpisodeRequests
|
||||
{
|
||||
EpisodeNumber = ep.number,
|
||||
AirDate = DateTime.Parse(ep.airdate),
|
||||
Title = ep.name,
|
||||
Url = ep.url
|
||||
});
|
||||
}
|
||||
}
|
||||
childRequest.SeasonRequests.Add(new SeasonRequests
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue