1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-01-10 23:29:53 +02:00

Fixed: Don't do title search when adding series from AniList import list

Closes #6140
This commit is contained in:
Mark McDowall 2023-11-09 15:32:40 -08:00
parent 0fe05fb3a9
commit 1e295d81f2

View File

@ -109,11 +109,15 @@ private void ProcessListItems(List<ImportListItemInfo> items)
var mappedSeries = _seriesSearchService.SearchForNewSeriesByAniListId(item.AniListId) var mappedSeries = _seriesSearchService.SearchForNewSeriesByAniListId(item.AniListId)
.FirstOrDefault(); .FirstOrDefault();
if (mappedSeries != null) if (mappedSeries == null)
{ {
item.TvdbId = mappedSeries.TvdbId; _logger.Debug("Rejected, unable to find matching TVDB ID for Anilist ID: {0} [{1}]", item.AniListId, item.Title);
item.Title = mappedSeries.Title;
continue;
} }
item.TvdbId = mappedSeries.TvdbId;
item.Title = mappedSeries.Title;
} }
// Map TVDb if we only have a series name // Map TVDb if we only have a series name