moved series refresh at the end
This commit is contained in:
@@ -65,11 +65,6 @@ public sealed class BlockedTorrentHandler
|
|||||||
await DeleteTorrentFromQueueAsync(sonarrInstance, record);
|
await DeleteTorrentFromQueueAsync(sonarrInstance, record);
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (int id in seriesToBeRefreshed)
|
|
||||||
{
|
|
||||||
await RefreshSeriesAsync(sonarrInstance, id);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (queueResponse.Records.Count is 0)
|
if (queueResponse.Records.Count is 0)
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
@@ -89,6 +84,11 @@ public sealed class BlockedTorrentHandler
|
|||||||
|
|
||||||
page++;
|
page++;
|
||||||
} while (processedRecords < totalRecords);
|
} while (processedRecords < totalRecords);
|
||||||
|
|
||||||
|
foreach (int id in seriesToBeRefreshed)
|
||||||
|
{
|
||||||
|
await RefreshSeriesAsync(sonarrInstance, id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user