From e6eb779fbcdeaf69d2b9aef5a05715690c7eeebf Mon Sep 17 00:00:00 2001 From: ConfusedPolarBear <33811686+ConfusedPolarBear@users.noreply.github.com> Date: Sat, 18 Jun 2022 00:07:00 -0500 Subject: [PATCH] Restore per season log entries --- ConfusedPolarBear.Plugin.IntroSkipper/Entrypoint.cs | 8 +++++++- .../ScheduledTasks/FingerprinterTask.cs | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Entrypoint.cs b/ConfusedPolarBear.Plugin.IntroSkipper/Entrypoint.cs index 1db265d..88f0200 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Entrypoint.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Entrypoint.cs @@ -107,8 +107,14 @@ public class Entrypoint : IServerEntryPoint var query = new InternalItemsQuery() { + // Order by series name, season, and then episode number so that status updates are logged in order ParentId = Guid.Parse(rawId), - OrderBy = new[] { ("IndexNumber", SortOrder.Ascending) }, + OrderBy = new[] + { + ("SeriesSortName", SortOrder.Ascending), + ("ParentIndexNumber", SortOrder.Ascending), + ("IndexNumber", SortOrder.Ascending), + }, IncludeItemTypes = new BaseItemKind[] { BaseItemKind.Episode }, Recursive = true, }; diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/FingerprinterTask.cs b/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/FingerprinterTask.cs index 0ba49ef..7647fda 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/FingerprinterTask.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/FingerprinterTask.cs @@ -173,7 +173,7 @@ public class FingerprinterTask : IScheduledTask return; } - _logger.LogDebug( + _logger.LogInformation( "Analyzing {Count} episodes from {Name} season {Season}", season.Value.Count, first.SeriesName,