mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
Added the open on mobile back in, this will be available in the next app update
This commit is contained in:
parent
8dd00e9e99
commit
4071b2e8a2
4 changed files with 27 additions and 14 deletions
|
@ -13,7 +13,7 @@ namespace Ombi.Core.Rule.Rules.Search
|
|||
{
|
||||
public static void CheckForUnairedEpisodes(SearchTvShowViewModel search)
|
||||
{
|
||||
foreach (var season in search.SeasonRequests)
|
||||
foreach (var season in search.SeasonRequests.ToList())
|
||||
{
|
||||
// If we have all the episodes for this season, then this season is available
|
||||
if (season.Episodes.All(x => x.Available))
|
||||
|
|
|
@ -85,9 +85,9 @@ namespace Ombi.Core.Rule.Rules.Search
|
|||
if (search.SeasonRequests.Any())
|
||||
{
|
||||
var allEpisodes = PlexContentRepository.GetAllEpisodes();
|
||||
foreach (var season in search.SeasonRequests)
|
||||
foreach (var season in search.SeasonRequests.ToList())
|
||||
{
|
||||
foreach (var episode in season.Episodes)
|
||||
foreach (var episode in season.Episodes.ToList())
|
||||
{
|
||||
await AvailabilityRuleHelper.SingleEpisodeCheck(useImdb, allEpisodes, episode, season, item, useTheMovieDb, useTvDb, Log);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue