mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-28 21:12:43 +02:00
Fixed an issue creating metadata for all series
This commit is contained in:
@@ -38,18 +38,18 @@ namespace NzbDrone.Core.Jobs
|
||||
|
||||
public void Start(ProgressNotification notification, int targetId, int secondaryTargetId)
|
||||
{
|
||||
List<Series> seriesToRefresh;
|
||||
|
||||
if (targetId <= 0)
|
||||
seriesToRefresh = _seriesProvider.GetAllSeries().ToList();
|
||||
|
||||
else
|
||||
seriesToRefresh = new List<Series> { _seriesProvider.GetSeries(targetId) };
|
||||
|
||||
foreach(var series in seriesToRefresh)
|
||||
{
|
||||
var allSeries = _seriesProvider.GetAllSeries();
|
||||
|
||||
foreach(var s in allSeries)
|
||||
{
|
||||
RefreshMetadata(notification, s);
|
||||
}
|
||||
}
|
||||
|
||||
var series = _seriesProvider.GetSeries(targetId);
|
||||
RefreshMetadata(notification, series);
|
||||
RefreshMetadata(notification, series);
|
||||
}
|
||||
}
|
||||
|
||||
private void RefreshMetadata(ProgressNotification notification, Series series)
|
||||
|
Reference in New Issue
Block a user