From 2d21ee67e19ff1cb53531de3b7e6cdf309d4ac77 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Wed, 16 Jan 2013 23:29:43 -0800 Subject: [PATCH] Better messages when searching for daily episodes --- NzbDrone.Core/Providers/Search/DailyEpisodeSearch.cs | 2 +- NzbDrone.Core/Repository/Episode.cs | 4 ++-- .../NzbDrone.Services.Service.csproj | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/NzbDrone.Core/Providers/Search/DailyEpisodeSearch.cs b/NzbDrone.Core/Providers/Search/DailyEpisodeSearch.cs index 4bb4b84b1..f18df2e6a 100644 --- a/NzbDrone.Core/Providers/Search/DailyEpisodeSearch.cs +++ b/NzbDrone.Core/Providers/Search/DailyEpisodeSearch.cs @@ -75,7 +75,7 @@ protected override void FinalizeSearch(Series series, dynamic options, Boolean r { logger.Warn("Unable to find {0} in any of indexers.", options.Episode); - notification.CurrentMessage = reportsFound ? String.Format("Sorry, couldn't find {0}, that matches your preferences.", options.Episode) + notification.CurrentMessage = reportsFound ? String.Format("Sorry, couldn't find {0}, that matches your preferences.", options.Episode.AirDate) : String.Format("Sorry, couldn't find {0} in any of indexers.", options.Episode); } } diff --git a/NzbDrone.Core/Repository/Episode.cs b/NzbDrone.Core/Repository/Episode.cs index f93782fd6..b99f9658c 100644 --- a/NzbDrone.Core/Repository/Episode.cs +++ b/NzbDrone.Core/Repository/Episode.cs @@ -77,8 +77,8 @@ public override string ToString() { string seriesTitle = Series == null ? "[NULL]" : Series.Title; - //if (IsDailyEpisode) - // return string.Format("{0} - {1}", seriesTitle, AirDate.Date); + if (Series != null && Series.IsDaily && AirDate.HasValue) + return string.Format("{0} - {1:yyyy-MM-dd}", seriesTitle, AirDate.Value); return string.Format("{0} - S{1:00}E{2:00}", seriesTitle, SeasonNumber, EpisodeNumber); } diff --git a/NzbDrone.Services/NzbDrone.Services.Service/NzbDrone.Services.Service.csproj b/NzbDrone.Services/NzbDrone.Services.Service/NzbDrone.Services.Service.csproj index f9854c187..0aca9c285 100644 --- a/NzbDrone.Services/NzbDrone.Services.Service/NzbDrone.Services.Service.csproj +++ b/NzbDrone.Services/NzbDrone.Services.Service/NzbDrone.Services.Service.csproj @@ -366,7 +366,7 @@ False True - 25289 + 59157 / http://localhost:62182/ False