From 07c9995c3cfda2a7c2d5d04b14fc04f4492f18ae Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 20 May 2026 18:53:19 +0000 Subject: [PATCH] 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> --- .../Services/MovieNightSyncService.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/jellyfin/Jellyfin.Plugin.MovieNight/Services/MovieNightSyncService.cs b/plugins/jellyfin/Jellyfin.Plugin.MovieNight/Services/MovieNightSyncService.cs index 39d6ca9..b1f39c5 100644 --- a/plugins/jellyfin/Jellyfin.Plugin.MovieNight/Services/MovieNightSyncService.cs +++ b/plugins/jellyfin/Jellyfin.Plugin.MovieNight/Services/MovieNightSyncService.cs @@ -48,6 +48,8 @@ public class MovieNightSyncService { _logger.LogInformation("Starting MovieNight library sync"); + cancellationToken.ThrowIfCancellationRequested(); + var items = _libraryManager.GetItemList(new InternalItemsQuery { IncludeItemTypes = new[] { BaseItemKind.Movie },