Fixed the issue where the first scan has the potential to not get all the shows depending on the order of the plex libraries

pull/4252/head
tidusjar 3 years ago
parent f8c1114401
commit b406dc0118

@ -175,7 +175,7 @@ namespace Ombi.Schedule.Jobs.Plex
var allEps = Repo.GetAllEpisodes();
foreach (var content in allContent)
foreach (var content in allContent.OrderByDescending(x => x.viewGroup))
{
Logger.LogDebug($"Got type '{content.viewGroup}' to process");
if (content.viewGroup.Equals(PlexMediaType.Episode.ToString(), StringComparison.InvariantCultureIgnoreCase))

Loading…
Cancel
Save