From 680ea4583958409035f091f56ce3be81237e86d5 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Fri, 22 Apr 2011 13:59:43 -0700 Subject: [PATCH] fixed Episode.ToString() bug --- NzbDrone.Core.Test/ParserTest.cs | 2 +- NzbDrone.Core/Providers/Indexer/IndexerProviderBase.cs | 2 +- NzbDrone.Core/Repository/Episode.cs | 4 ---- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/NzbDrone.Core.Test/ParserTest.cs b/NzbDrone.Core.Test/ParserTest.cs index fc0d0bc4c..56685fa7e 100644 --- a/NzbDrone.Core.Test/ParserTest.cs +++ b/NzbDrone.Core.Test/ParserTest.cs @@ -12,7 +12,7 @@ namespace NzbDrone.Core.Test /*Fucked-up hall of shame, * WWE.Wrestlemania.27.PPV.HDTV.XviD-KYR * The.Kennedys.Part.2.DSR.XviD-SYS - * + * Unreported.World.Chinas.Lost.Sons.WS.PDTV.XviD-FTP */ [Test] diff --git a/NzbDrone.Core/Providers/Indexer/IndexerProviderBase.cs b/NzbDrone.Core/Providers/Indexer/IndexerProviderBase.cs index 063c5560a..797148584 100644 --- a/NzbDrone.Core/Providers/Indexer/IndexerProviderBase.cs +++ b/NzbDrone.Core/Providers/Indexer/IndexerProviderBase.cs @@ -126,7 +126,7 @@ namespace NzbDrone.Core.Providers.Indexer { if (_historyProvider.Exists(episode.EpisodeId, parseResult.Quality, parseResult.Proper)) { - _logger.Debug("Episode in history: {0}", episode.ToString()); + _logger.Debug("Episode in history: {0}", feedItem.Title.Text); } else { diff --git a/NzbDrone.Core/Repository/Episode.cs b/NzbDrone.Core/Repository/Episode.cs index 008fd795e..f9092512c 100644 --- a/NzbDrone.Core/Repository/Episode.cs +++ b/NzbDrone.Core/Repository/Episode.cs @@ -40,9 +40,5 @@ namespace NzbDrone.Core.Repository [SubSonicToManyRelation] public virtual List Histories { get; protected set; } - public override string ToString() - { - return String.Format("[Episode: '{0} S{1:00}E{2:00}']", Series.Title, SeasonNumber, EpisodeNumber); - } } } \ No newline at end of file