From 22679d61879090a00845c4f36a6d3f17dfdba09a Mon Sep 17 00:00:00 2001 From: ta264 Date: Wed, 20 May 2020 22:05:01 +0100 Subject: [PATCH] Fixed: Missed list monitor type rename --- .../ImportListTests/ImportListSyncServiceFixture.cs | 10 +++++----- src/NzbDrone.Core/ImportLists/ImportListDefinition.cs | 4 ++-- src/NzbDrone.Core/ImportLists/ImportListSyncService.cs | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/NzbDrone.Core.Test/ImportListTests/ImportListSyncServiceFixture.cs b/src/NzbDrone.Core.Test/ImportListTests/ImportListSyncServiceFixture.cs index 2db8a98e1..5337c8ec7 100644 --- a/src/NzbDrone.Core.Test/ImportListTests/ImportListSyncServiceFixture.cs +++ b/src/NzbDrone.Core.Test/ImportListTests/ImportListSyncServiceFixture.cs @@ -49,7 +49,7 @@ public void SetUp() Mocker.GetMock() .Setup(v => v.Get(It.IsAny())) - .Returns(new ImportListDefinition { ShouldMonitor = ImportListMonitorType.SpecificAlbum }); + .Returns(new ImportListDefinition { ShouldMonitor = ImportListMonitorType.SpecificBook }); Mocker.GetMock() .Setup(v => v.Fetch()) @@ -222,8 +222,8 @@ public void should_add_if_existing_artist_but_new_album() } [TestCase(ImportListMonitorType.None, false)] - [TestCase(ImportListMonitorType.SpecificAlbum, true)] - [TestCase(ImportListMonitorType.EntireArtist, true)] + [TestCase(ImportListMonitorType.SpecificBook, true)] + [TestCase(ImportListMonitorType.EntireAuthor, true)] public void should_add_if_not_existing_artist(ImportListMonitorType monitor, bool expectedArtistMonitored) { WithAuthorId(); @@ -236,8 +236,8 @@ public void should_add_if_not_existing_artist(ImportListMonitorType monitor, boo } [TestCase(ImportListMonitorType.None, false)] - [TestCase(ImportListMonitorType.SpecificAlbum, true)] - [TestCase(ImportListMonitorType.EntireArtist, true)] + [TestCase(ImportListMonitorType.SpecificBook, true)] + [TestCase(ImportListMonitorType.EntireAuthor, true)] public void should_add_if_not_existing_album(ImportListMonitorType monitor, bool expectedAlbumMonitored) { WithBookId(); diff --git a/src/NzbDrone.Core/ImportLists/ImportListDefinition.cs b/src/NzbDrone.Core/ImportLists/ImportListDefinition.cs index 39473a044..9f4b6babb 100644 --- a/src/NzbDrone.Core/ImportLists/ImportListDefinition.cs +++ b/src/NzbDrone.Core/ImportLists/ImportListDefinition.cs @@ -19,7 +19,7 @@ public class ImportListDefinition : ProviderDefinition public enum ImportListMonitorType { None, - SpecificAlbum, - EntireArtist + SpecificBook, + EntireAuthor } } diff --git a/src/NzbDrone.Core/ImportLists/ImportListSyncService.cs b/src/NzbDrone.Core/ImportLists/ImportListSyncService.cs index 2785f5dda..d37e7d82d 100644 --- a/src/NzbDrone.Core/ImportLists/ImportListSyncService.cs +++ b/src/NzbDrone.Core/ImportLists/ImportListSyncService.cs @@ -221,7 +221,7 @@ private void ProcessAlbumReport(ImportListDefinition importList, ImportListItemI }, }; - if (importList.ShouldMonitor == ImportListMonitorType.SpecificAlbum) + if (importList.ShouldMonitor == ImportListMonitorType.SpecificBook) { toAdd.Author.Value.AddOptions.BooksToMonitor.Add(toAdd.ForeignBookId); }