mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
Fixed: Reverted a change that caused SQL error on NetImport
c300af8241 (diff-4199a537105793b9a05a6232cb0531bb)
that caused SQL error when doing netimport search
update tests
update tests
revert tests then remove
revert tests changes --> comment out the tests
This commit is contained in:
parent
bf0c716aa5
commit
4385acef99
@ -363,6 +363,7 @@ public void should_not_add_movie_that_exists_in_library()
|
||||
.Verify(v => v.AddMovies(It.Is<List<Movie>>(s => s.Count == 7 && !s.Any(m => m.TmdbId == _moviesList2[0].TmdbId))), Times.Once());
|
||||
}
|
||||
|
||||
/*
|
||||
[Test]
|
||||
public void should_not_tmdb_map_movie_that_has_tmdbid_from_list()
|
||||
{
|
||||
@ -400,6 +401,6 @@ public void should_tmdb_map_movie_that_has_no_tmdbid_from_list()
|
||||
|
||||
Mocker.GetMock<IMovieService>()
|
||||
.Verify(v => v.AddMovies(It.Is<List<Movie>>(s => s.Count == 5)), Times.Once());
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
@ -135,12 +135,7 @@ public void Execute(NetImportSyncCommand message)
|
||||
|
||||
foreach (var movie in listedMovies)
|
||||
{
|
||||
var mapped = movie;
|
||||
|
||||
if (mapped.TmdbId == 0)
|
||||
{
|
||||
mapped = _movieSearch.MapMovieToTmdbMovie(movie);
|
||||
}
|
||||
var mapped = _movieSearch.MapMovieToTmdbMovie(movie);
|
||||
|
||||
if (mapped != null && mapped.TmdbId > 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user