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

This commit is contained in:
tidusjar 2021-07-05 14:20:25 +01:00
commit b406dc0118

View file

@ -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))