whoops, only parse title once

This commit is contained in:
Devin Buhl 2017-01-15 15:35:38 -05:00
commit 6878abe2a2
2 changed files with 6 additions and 3 deletions

View file

@ -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)
});
}

View file

@ -122,6 +122,7 @@
<Compile Include="Authentication\User.cs" />
<Compile Include="Authentication\UserRepository.cs" />
<Compile Include="Authentication\UserService.cs" />
<Compile Include="Datastore\Migration\119_create_netimport_table.cs" />
<Compile Include="NetImport\Exceptions\NetImportException.cs" />
<Compile Include="NetImport\HttpNetImportBase.cs" />
<Compile Include="NetImport\IProcessNetImportResponse.cs" />