mirror of
https://github.com/Radarr/Radarr
synced 2025-01-04 06:23:32 +00: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
2 changed files with 3 additions and 7 deletions
|
@ -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());
|
.Verify(v => v.AddMovies(It.Is<List<Movie>>(s => s.Count == 7 && !s.Any(m => m.TmdbId == _moviesList2[0].TmdbId))), Times.Once());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
[Test]
|
[Test]
|
||||||
public void should_not_tmdb_map_movie_that_has_tmdbid_from_list()
|
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>()
|
Mocker.GetMock<IMovieService>()
|
||||||
.Verify(v => v.AddMovies(It.Is<List<Movie>>(s => s.Count == 5)), Times.Once());
|
.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)
|
foreach (var movie in listedMovies)
|
||||||
{
|
{
|
||||||
var mapped = movie;
|
var mapped = _movieSearch.MapMovieToTmdbMovie(movie);
|
||||||
|
|
||||||
if (mapped.TmdbId == 0)
|
|
||||||
{
|
|
||||||
mapped = _movieSearch.MapMovieToTmdbMovie(movie);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (mapped != null && mapped.TmdbId > 0)
|
if (mapped != null && mapped.TmdbId > 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue