whoops, only parse title once

pull/497/head
Devin Buhl 8 years ago
parent ec1c81e3ed
commit 6878abe2a2

@ -40,11 +40,13 @@ namespace NzbDrone.Core.NetImport.IMDbWatchList
foreach (var result in responseData) foreach (var result in responseData)
{ {
var title = Parser.Parser.ParseMovieTitle(result.Title, false);
torrentInfos.Add(new Movie() torrentInfos.Add(new Movie()
{ {
Title = Parser.Parser.ParseMovieTitle(result.Title, false).MovieTitle, Title = title.MovieTitle,
Year = Parser.Parser.ParseMovieTitle(result.Title, false).Year, Year = title.Year,
ImdbId = Parser.Parser.ParseImdbId(result.Link).ToString() ImdbId = Parser.Parser.ParseImdbId(result.Link)
}); });
} }

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

Loading…
Cancel
Save