1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-24 16:51:58 +00:00

Fixed an issue creating metadata for all series

This commit is contained in:
markus101 2012-07-27 07:32:57 -07:00
parent e5b6f63e6e
commit 1c99d602d8

View file

@ -38,18 +38,18 @@ public TimeSpan DefaultInterval
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)