Restore per season log entries

This commit is contained in:
ConfusedPolarBear 2022-06-18 00:07:00 -05:00
parent 1dbcde01c6
commit e6eb779fbc
2 changed files with 8 additions and 2 deletions

View File

@ -107,8 +107,14 @@ public class Entrypoint : IServerEntryPoint
var query = new InternalItemsQuery() 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), 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 }, IncludeItemTypes = new BaseItemKind[] { BaseItemKind.Episode },
Recursive = true, Recursive = true,
}; };

View File

@ -173,7 +173,7 @@ public class FingerprinterTask : IScheduledTask
return; return;
} }
_logger.LogDebug( _logger.LogInformation(
"Analyzing {Count} episodes from {Name} season {Season}", "Analyzing {Count} episodes from {Name} season {Season}",
season.Value.Count, season.Value.Count,
first.SeriesName, first.SeriesName,