From 34e74eecd77ee736db6df6e5c04d71d7ba626776 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Tue, 6 Feb 2024 20:02:26 -0800 Subject: [PATCH] Fixed: Don't attempt to import from list with title only (#6477) Closes #6474 --- .../ImportListTests/ImportListSyncServiceFixture.cs | 11 ----------- .../ImportLists/ImportListSyncService.cs | 13 ------------- 2 files changed, 24 deletions(-) diff --git a/src/NzbDrone.Core.Test/ImportListTests/ImportListSyncServiceFixture.cs b/src/NzbDrone.Core.Test/ImportListTests/ImportListSyncServiceFixture.cs index 3cf62f649..d9702c24b 100644 --- a/src/NzbDrone.Core.Test/ImportListTests/ImportListSyncServiceFixture.cs +++ b/src/NzbDrone.Core.Test/ImportListTests/ImportListSyncServiceFixture.cs @@ -406,17 +406,6 @@ namespace NzbDrone.Core.Test.ImportListTests .Verify(v => v.AddSeries(It.Is>(s => s.Count == 3), true), Times.Once()); } - [Test] - public void should_search_if_series_title_and_no_series_id() - { - _importListFetch.Series.ForEach(m => m.ImportListId = 1); - WithList(1, true); - Subject.Execute(_commandAll); - - Mocker.GetMock() - .Verify(v => v.SearchForNewSeries(It.IsAny()), Times.Once()); - } - [Test] public void should_not_search_if_series_title_and_series_id() { diff --git a/src/NzbDrone.Core/ImportLists/ImportListSyncService.cs b/src/NzbDrone.Core/ImportLists/ImportListSyncService.cs index f6d414562..1c4c9ea7a 100644 --- a/src/NzbDrone.Core/ImportLists/ImportListSyncService.cs +++ b/src/NzbDrone.Core/ImportLists/ImportListSyncService.cs @@ -190,19 +190,6 @@ namespace NzbDrone.Core.ImportLists item.Title = mappedSeries.Title; } - // Map TVDb if we only have a series name - if (item.TvdbId <= 0 && item.Title.IsNotNullOrWhiteSpace()) - { - var mappedSeries = _seriesSearchService.SearchForNewSeries(item.Title) - .FirstOrDefault(); - - if (mappedSeries != null) - { - item.TvdbId = mappedSeries.TvdbId; - item.Title = mappedSeries?.Title; - } - } - // Check to see if series excluded var excludedSeries = listExclusions.Where(s => s.TvdbId == item.TvdbId).SingleOrDefault();