1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-18 21:35:51 -04:00

Fixed XBMC updating

This commit is contained in:
Mark McDowall
2013-06-04 20:13:57 -07:00
parent 66bce4b51e
commit 9722506aca
3 changed files with 28 additions and 20 deletions
@@ -10,6 +10,7 @@ using NzbDrone.Common.Serializer;
using NzbDrone.Core.Download;
using NzbDrone.Core.MediaFiles.Events;
using NzbDrone.Core.Parser.Model;
using NzbDrone.Core.Tv;
using Omu.ValueInjecter;
namespace NzbDrone.Core.Notifications
@@ -134,10 +135,10 @@ namespace NzbDrone.Core.Notifications
return instance;
}
private string GetMessage(ParsedEpisodeInfo parsedEpisodeInfo)
private string GetMessage(ParsedEpisodeInfo parsedEpisodeInfo, Series series)
{
return String.Format("{0} - {1}{2}",
parsedEpisodeInfo.SeriesTitle,
series.Title,
parsedEpisodeInfo.SeasonNumber,
String.Concat(parsedEpisodeInfo.EpisodeNumbers.Select(i => String.Format("x{0:00}", i))));
}
@@ -148,7 +149,7 @@ namespace NzbDrone.Core.Notifications
.ToList()
.ForEach(notification =>
notification.Instance
.OnGrab(GetMessage(message.Episode.ParsedEpisodeInfo))
.OnGrab(GetMessage(message.Episode.ParsedEpisodeInfo, message.Episode.Series))
);
}
@@ -158,7 +159,7 @@ namespace NzbDrone.Core.Notifications
.ToList()
.ForEach(notification =>
notification.Instance
.OnDownload(GetMessage(message.ParsedEpisodeInfo), message.Series)
.OnDownload(GetMessage(message.ParsedEpisodeInfo, message.Series), message.Series)
);
}