From 6878abe2a20f8f1f32e93601325642ea906fd98f Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Sun, 15 Jan 2017 15:35:38 -0500 Subject: [PATCH] whoops, only parse title once --- .../NetImport/IMDbWatchList/IMDbWatchListParser.cs | 8 +++++--- src/NzbDrone.Core/NzbDrone.Core.csproj | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/NzbDrone.Core/NetImport/IMDbWatchList/IMDbWatchListParser.cs b/src/NzbDrone.Core/NetImport/IMDbWatchList/IMDbWatchListParser.cs index 7fd666141..4042eff95 100644 --- a/src/NzbDrone.Core/NetImport/IMDbWatchList/IMDbWatchListParser.cs +++ b/src/NzbDrone.Core/NetImport/IMDbWatchList/IMDbWatchListParser.cs @@ -40,11 +40,13 @@ namespace NzbDrone.Core.NetImport.IMDbWatchList foreach (var result in responseData) { + var title = Parser.Parser.ParseMovieTitle(result.Title, false); + torrentInfos.Add(new Movie() { - Title = Parser.Parser.ParseMovieTitle(result.Title, false).MovieTitle, - Year = Parser.Parser.ParseMovieTitle(result.Title, false).Year, - ImdbId = Parser.Parser.ParseImdbId(result.Link).ToString() + Title = title.MovieTitle, + Year = title.Year, + ImdbId = Parser.Parser.ParseImdbId(result.Link) }); } diff --git a/src/NzbDrone.Core/NzbDrone.Core.csproj b/src/NzbDrone.Core/NzbDrone.Core.csproj index ebbf9c761..f26bca9f4 100644 --- a/src/NzbDrone.Core/NzbDrone.Core.csproj +++ b/src/NzbDrone.Core/NzbDrone.Core.csproj @@ -122,6 +122,7 @@ +