You've already forked Sonarr
mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-11-06 09:19:38 +02:00
more notification updates
This commit is contained in:
@@ -29,8 +29,8 @@ namespace NzbDrone.Core.Providers.Fakes
|
||||
{
|
||||
fakeNotification.Status = ProgressNotificationStatus.InProgress;
|
||||
fakeNotification.Status = ProgressNotificationStatus.InProgress;
|
||||
fakeNotification2.CurrentStatus = DateTime.UtcNow.ToString();
|
||||
fakeNotification.CurrentStatus = DateTime.Now.ToString();
|
||||
fakeNotification2.CurrentMessage = DateTime.UtcNow.ToString();
|
||||
fakeNotification.CurrentMessage = DateTime.Now.ToString();
|
||||
return new List<ProgressNotification> {fakeNotification};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -187,6 +187,7 @@ namespace NzbDrone.Core.Providers.Jobs
|
||||
{
|
||||
settings.Success = false;
|
||||
Logger.ErrorException("An error has occurred while executing timer job " + timerClass.Name, e);
|
||||
_notification.CurrentMessage = timerClass.Name + " Failed.";
|
||||
_notification.Status = ProgressNotificationStatus.Failed;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,14 +45,14 @@ namespace NzbDrone.Core.Providers.Jobs
|
||||
{
|
||||
try
|
||||
{
|
||||
notification.CurrentStatus = String.Format("Searching For: {0}", new DirectoryInfo(currentSeries.Path).Name);
|
||||
notification.CurrentMessage = String.Format("Searching For: {0}", new DirectoryInfo(currentSeries.Path).Name);
|
||||
var updatedSeries = _seriesProvider.UpdateSeriesInfo(currentSeries.SeriesId);
|
||||
|
||||
notification.CurrentStatus = String.Format("Downloading episode info For: {0}",
|
||||
notification.CurrentMessage = String.Format("Downloading episode info For: {0}",
|
||||
updatedSeries.Title);
|
||||
_episodeProvider.RefreshEpisodeInfo(updatedSeries.SeriesId);
|
||||
|
||||
notification.CurrentStatus = String.Format("Scanning disk for {0} files",
|
||||
notification.CurrentMessage = String.Format("Scanning disk for {0} files",
|
||||
updatedSeries.Title);
|
||||
_mediaFileProvider.Scan(_seriesProvider.GetSeries(updatedSeries.SeriesId));
|
||||
}
|
||||
|
||||
@@ -40,11 +40,10 @@ namespace NzbDrone.Core.Providers.Jobs
|
||||
|
||||
foreach (var series in seriesToUpdate)
|
||||
{
|
||||
notification.CurrentStatus = "Updating series info for " + series.Title;
|
||||
notification.CurrentMessage = "Updating " + series.Title;
|
||||
_seriesProvider.UpdateSeriesInfo(series.SeriesId);
|
||||
notification.CurrentStatus = "Updating episode info for " + series.Title;
|
||||
_episodeProvider.RefreshEpisodeInfo(series.SeriesId);
|
||||
notification.CurrentStatus = "Update completed for " + series.Title;
|
||||
notification.CurrentMessage = "Update completed for " + series.Title;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user