diff --git a/PlexRequests.Core.Migration/Migrations/Version1100.cs b/PlexRequests.Core.Migration/Migrations/Version1100.cs index 15c127d6e..012bcd126 100644 --- a/PlexRequests.Core.Migration/Migrations/Version1100.cs +++ b/PlexRequests.Core.Migration/Migrations/Version1100.cs @@ -238,18 +238,18 @@ namespace PlexRequests.Core.Migration.Migrations // UI = https://image.tmdb.org/t/p/w150/{{posterPath}} // Update old invalid posters - var allRequests = RequestService.GetAll().ToList(); + // var allRequests = RequestService.GetAll().ToList(); - foreach (var req in allRequests) - { - if (req.PosterPath.Contains("https://image.tmdb.org/t/p/w150/")) - { - var newImg = req.PosterPath.Replace("https://image.tmdb.org/t/p/w150/", string.Empty); - req.PosterPath = newImg; - } - } - RequestService.BatchUpdate(allRequests); - } + // foreach (var req in allRequests) + // { + // if (req.PosterPath.Contains("https://image.tmdb.org/t/p/w150/")) + // { + // var newImg = req.PosterPath.Replace("https://image.tmdb.org/t/p/w150/", string.Empty); + // req.PosterPath = newImg; + // } + // } + // RequestService.BatchUpdate(allRequests); + } private void UpdateAdmin() { diff --git a/PlexRequests.Services/Jobs/RecentlyAdded.cs b/PlexRequests.Services/Jobs/RecentlyAdded.cs index 24fa5b58c..bc4c2c308 100644 --- a/PlexRequests.Services/Jobs/RecentlyAdded.cs +++ b/PlexRequests.Services/Jobs/RecentlyAdded.cs @@ -202,11 +202,17 @@ namespace PlexRequests.Services.Jobs private void GenerateTvHtml(RecentlyAddedModel tv, PlexSettings plexSettings, StringBuilder sb) { + var orderedTv = tv?._children; + if (orderedTv == null) + { + return; + } + orderedTv = orderedTv.OrderByDescending(x => x?.addedAt.UnixTimeStampToDateTime()).ToList(); // TV sb.Append("

New Episodes:



"); sb.Append( ""); - foreach (var t in tv._children.OrderByDescending(x => x.addedAt.UnixTimeStampToDateTime())) + foreach (var t in orderedTv) { var plexGUID = string.Empty; try