From e617563b6354b26d0daf624eff6efc57c3abb554 Mon Sep 17 00:00:00 2001 From: Daniel Underwood Date: Fri, 7 Jul 2017 17:25:11 -0400 Subject: [PATCH] Add System.Obsolete attributes to tv-specific things seen in adding search code --- src/NzbDrone.Core/Indexers/IIndexer.cs | 5 +++++ src/NzbDrone.Core/Indexers/IndexerBase.cs | 6 ++++++ src/NzbDrone.Core/Indexers/Rarbg/RarbgRequestGenerator.cs | 5 +++++ 3 files changed, 16 insertions(+) diff --git a/src/NzbDrone.Core/Indexers/IIndexer.cs b/src/NzbDrone.Core/Indexers/IIndexer.cs index b716a90f8..658cfaf3c 100644 --- a/src/NzbDrone.Core/Indexers/IIndexer.cs +++ b/src/NzbDrone.Core/Indexers/IIndexer.cs @@ -12,10 +12,15 @@ namespace NzbDrone.Core.Indexers DownloadProtocol Protocol { get; } IList FetchRecent(); + [System.Obsolete("Sonarr TV Stuff -- Shouldn't be needed for Lidarr")] IList Fetch(SeasonSearchCriteria searchCriteria); + [System.Obsolete("Sonarr TV Stuff -- Shouldn't be needed for Lidarr")] IList Fetch(SingleEpisodeSearchCriteria searchCriteria); + [System.Obsolete("Sonarr TV Stuff -- Shouldn't be needed for Lidarr")] IList Fetch(DailyEpisodeSearchCriteria searchCriteria); + [System.Obsolete("Sonarr TV Stuff -- Shouldn't be needed for Lidarr")] IList Fetch(AnimeEpisodeSearchCriteria searchCriteria); + [System.Obsolete("Sonarr TV Stuff -- Shouldn't be needed for Lidarr")] IList Fetch(SpecialEpisodeSearchCriteria searchCriteria); IList Fetch(AlbumSearchCriteria searchCriteria); } diff --git a/src/NzbDrone.Core/Indexers/IndexerBase.cs b/src/NzbDrone.Core/Indexers/IndexerBase.cs index f6253a26f..2a58f94d4 100644 --- a/src/NzbDrone.Core/Indexers/IndexerBase.cs +++ b/src/NzbDrone.Core/Indexers/IndexerBase.cs @@ -62,10 +62,16 @@ namespace NzbDrone.Core.Indexers protected TSettings Settings => (TSettings)Definition.Settings; public abstract IList FetchRecent(); + + [System.Obsolete("Sonarr TV Stuff -- Shouldn't be needed for Lidarr")] public abstract IList Fetch(SeasonSearchCriteria searchCriteria); + [System.Obsolete("Sonarr TV Stuff -- Shouldn't be needed for Lidarr")] public abstract IList Fetch(SingleEpisodeSearchCriteria searchCriteria); + [System.Obsolete("Sonarr TV Stuff -- Shouldn't be needed for Lidarr")] public abstract IList Fetch(DailyEpisodeSearchCriteria searchCriteria); + [System.Obsolete("Sonarr TV Stuff -- Shouldn't be needed for Lidarr")] public abstract IList Fetch(AnimeEpisodeSearchCriteria searchCriteria); + [System.Obsolete("Sonarr TV Stuff -- Shouldn't be needed for Lidarr")] public abstract IList Fetch(SpecialEpisodeSearchCriteria searchCriteria); public abstract IList Fetch(AlbumSearchCriteria searchCriteria); diff --git a/src/NzbDrone.Core/Indexers/Rarbg/RarbgRequestGenerator.cs b/src/NzbDrone.Core/Indexers/Rarbg/RarbgRequestGenerator.cs index da684acf8..2586118d8 100644 --- a/src/NzbDrone.Core/Indexers/Rarbg/RarbgRequestGenerator.cs +++ b/src/NzbDrone.Core/Indexers/Rarbg/RarbgRequestGenerator.cs @@ -25,6 +25,7 @@ namespace NzbDrone.Core.Indexers.Rarbg return pageableRequests; } + [System.Obsolete("Sonarr TV Stuff -- Shouldn't be needed for Lidarr")] public virtual IndexerPageableRequestChain GetSearchRequests(SingleEpisodeSearchCriteria searchCriteria) { var pageableRequests = new IndexerPageableRequestChain(); @@ -34,6 +35,7 @@ namespace NzbDrone.Core.Indexers.Rarbg return pageableRequests; } + [System.Obsolete("Sonarr TV Stuff -- Shouldn't be needed for Lidarr")] public virtual IndexerPageableRequestChain GetSearchRequests(SeasonSearchCriteria searchCriteria) { var pageableRequests = new IndexerPageableRequestChain(); @@ -43,6 +45,7 @@ namespace NzbDrone.Core.Indexers.Rarbg return pageableRequests; } + [System.Obsolete("Sonarr TV Stuff -- Shouldn't be needed for Lidarr")] public virtual IndexerPageableRequestChain GetSearchRequests(DailyEpisodeSearchCriteria searchCriteria) { var pageableRequests = new IndexerPageableRequestChain(); @@ -52,11 +55,13 @@ namespace NzbDrone.Core.Indexers.Rarbg return pageableRequests; } + [System.Obsolete("Sonarr TV Stuff -- Shouldn't be needed for Lidarr")] public virtual IndexerPageableRequestChain GetSearchRequests(AnimeEpisodeSearchCriteria searchCriteria) { return new IndexerPageableRequestChain(); } + [System.Obsolete("Sonarr TV Stuff -- Shouldn't be needed for Lidarr")] public virtual IndexerPageableRequestChain GetSearchRequests(SpecialEpisodeSearchCriteria searchCriteria) { var pageableRequests = new IndexerPageableRequestChain();