moved series refresh at the end

This commit is contained in:
Flaminel
2024-11-10 19:44:22 +02:00
parent 9945ed20bf
commit a90fd0fcb7
@@ -65,11 +65,6 @@ public sealed class BlockedTorrentHandler
await DeleteTorrentFromQueueAsync(sonarrInstance, record);
}
foreach (int id in seriesToBeRefreshed)
{
await RefreshSeriesAsync(sonarrInstance, id);
}
if (queueResponse.Records.Count is 0)
{
break;
@@ -89,6 +84,11 @@ public sealed class BlockedTorrentHandler
page++;
} while (processedRecords < totalRecords);
foreach (int id in seriesToBeRefreshed)
{
await RefreshSeriesAsync(sonarrInstance, id);
}
}
}