mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 18:57:39 -07:00
Removed Progress Notification from BannerProvider.
This commit is contained in:
parent
861f6c1a0c
commit
c8f1bccc50
4 changed files with 27 additions and 18 deletions
|
@ -49,7 +49,9 @@ namespace NzbDrone.Core.Jobs
|
|||
var series = _seriesProvider.GetSeries(targetId);
|
||||
|
||||
if (series != null && !String.IsNullOrEmpty(series.BannerUrl))
|
||||
_bannerProvider.Download(notification, series);
|
||||
{
|
||||
DownloadBanner(notification, series);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
@ -58,10 +60,21 @@ namespace NzbDrone.Core.Jobs
|
|||
|
||||
foreach (var series in seriesInDb.Where(s => !String.IsNullOrEmpty(s.BannerUrl)))
|
||||
{
|
||||
_bannerProvider.Download(notification, series);
|
||||
DownloadBanner(notification, series);
|
||||
}
|
||||
|
||||
Logger.Debug("Finished banner download job");
|
||||
}
|
||||
|
||||
public virtual void DownloadBanner(ProgressNotification notification, Series series)
|
||||
{
|
||||
notification.CurrentMessage = string.Format("Downloading banner for '{0}'", series.Title);
|
||||
|
||||
if (_bannerProvider.Download(series))
|
||||
notification.CurrentMessage = string.Format("Successfully download banner for '{0}'", series.Title);
|
||||
|
||||
else
|
||||
notification.CurrentMessage = string.Format("Failed to download banner for '{0}'", series.Title);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue