mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-26 01:37:07 +00:00
Fixed an issue creating metadata for all series
This commit is contained in:
parent
e5b6f63e6e
commit
1c99d602d8
1 changed files with 10 additions and 10 deletions
|
@ -38,19 +38,19 @@ namespace NzbDrone.Core.Jobs
|
|||
|
||||
public void Start(ProgressNotification notification, int targetId, int secondaryTargetId)
|
||||
{
|
||||
List<Series> seriesToRefresh;
|
||||
|
||||
if (targetId <= 0)
|
||||
{
|
||||
var allSeries = _seriesProvider.GetAllSeries();
|
||||
seriesToRefresh = _seriesProvider.GetAllSeries().ToList();
|
||||
|
||||
foreach(var s in allSeries)
|
||||
{
|
||||
RefreshMetadata(notification, s);
|
||||
}
|
||||
}
|
||||
else
|
||||
seriesToRefresh = new List<Series> { _seriesProvider.GetSeries(targetId) };
|
||||
|
||||
var series = _seriesProvider.GetSeries(targetId);
|
||||
foreach(var series in seriesToRefresh)
|
||||
{
|
||||
RefreshMetadata(notification, series);
|
||||
}
|
||||
}
|
||||
|
||||
private void RefreshMetadata(ProgressNotification notification, Series series)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue