fix(jellyfin): check cancellation before library query
Agent-Logs-Url: https://github.com/devitq/movienight-backend/sessions/7063bb08-680e-403b-b42d-355fd2ad03aa Co-authored-by: devitq <118541411+devitq@users.noreply.github.com>
This commit is contained in:
co-authored by
devitq
parent
4c39020689
commit
07c9995c3c
@@ -48,6 +48,8 @@ public class MovieNightSyncService
|
|||||||
{
|
{
|
||||||
_logger.LogInformation("Starting MovieNight library sync");
|
_logger.LogInformation("Starting MovieNight library sync");
|
||||||
|
|
||||||
|
cancellationToken.ThrowIfCancellationRequested();
|
||||||
|
|
||||||
var items = _libraryManager.GetItemList(new InternalItemsQuery
|
var items = _libraryManager.GetItemList(new InternalItemsQuery
|
||||||
{
|
{
|
||||||
IncludeItemTypes = new[] { BaseItemKind.Movie },
|
IncludeItemTypes = new[] { BaseItemKind.Movie },
|
||||||
|
|||||||
Reference in New Issue
Block a user