diff --git a/code/Infrastructure/Verticals/BlockedTorrent/BlockedTorrentHandler.cs b/code/Infrastructure/Verticals/BlockedTorrent/BlockedTorrentHandler.cs index 3940e9b..ca70605 100644 --- a/code/Infrastructure/Verticals/BlockedTorrent/BlockedTorrentHandler.cs +++ b/code/Infrastructure/Verticals/BlockedTorrent/BlockedTorrentHandler.cs @@ -64,11 +64,6 @@ public sealed class BlockedTorrentHandler await DeleteTorrentFromQueueAsync(sonarrInstance, record); } - - foreach (int id in seriesToBeRefreshed) - { - await RefreshSeriesAsync(sonarrInstance, id); - } if (queueResponse.Records.Count is 0) { @@ -89,6 +84,11 @@ public sealed class BlockedTorrentHandler page++; } while (processedRecords < totalRecords); + + foreach (int id in seriesToBeRefreshed) + { + await RefreshSeriesAsync(sonarrInstance, id); + } } }