Fixed: Don't do title search when adding series from AniList import list
Closes #6140
This commit is contained in:
parent
0fe05fb3a9
commit
1e295d81f2
|
@ -109,12 +109,16 @@ namespace NzbDrone.Core.ImportLists
|
||||||
var mappedSeries = _seriesSearchService.SearchForNewSeriesByAniListId(item.AniListId)
|
var mappedSeries = _seriesSearchService.SearchForNewSeriesByAniListId(item.AniListId)
|
||||||
.FirstOrDefault();
|
.FirstOrDefault();
|
||||||
|
|
||||||
if (mappedSeries != null)
|
if (mappedSeries == null)
|
||||||
{
|
{
|
||||||
|
_logger.Debug("Rejected, unable to find matching TVDB ID for Anilist ID: {0} [{1}]", item.AniListId, item.Title);
|
||||||
|
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
item.TvdbId = mappedSeries.TvdbId;
|
item.TvdbId = mappedSeries.TvdbId;
|
||||||
item.Title = mappedSeries.Title;
|
item.Title = mappedSeries.Title;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Map TVDb if we only have a series name
|
// Map TVDb if we only have a series name
|
||||||
if (item.TvdbId <= 0 && item.Title.IsNotNullOrWhiteSpace())
|
if (item.TvdbId <= 0 && item.Title.IsNotNullOrWhiteSpace())
|
||||||
|
|
Loading…
Reference in New Issue