Fix missing ID when detecting intros
Co-Authored-By: tibetiroka <68112292+tibetiroka@users.noreply.github.com>
This commit is contained in:
parent
6ffb3d0e36
commit
056373037e
@ -65,13 +65,15 @@ public class QueueManager
|
||||
}
|
||||
|
||||
_logger.LogInformation(
|
||||
"Running enqueue of items in library {Name} ({ItemId})",
|
||||
folder.Name,
|
||||
folder.ItemId);
|
||||
"Running enqueue of items in library {Name}",
|
||||
folder.Name);
|
||||
|
||||
try
|
||||
{
|
||||
QueueLibraryContents(folder.ItemId);
|
||||
foreach (var location in folder.Locations)
|
||||
{
|
||||
QueueLibraryContents(_libraryManager.FindByPath(location, true).Id);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@ -126,14 +128,14 @@ public class QueueManager
|
||||
}
|
||||
}
|
||||
|
||||
private void QueueLibraryContents(string rawId)
|
||||
private void QueueLibraryContents(Guid id)
|
||||
{
|
||||
_logger.LogDebug("Constructing anonymous internal query");
|
||||
|
||||
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 = id,
|
||||
OrderBy = new[]
|
||||
{
|
||||
("SeriesSortName", SortOrder.Ascending),
|
||||
|
Loading…
x
Reference in New Issue
Block a user