From 31c2917bad63a817b932a6fe298616a72ac3771d Mon Sep 17 00:00:00 2001 From: Bogdan Date: Thu, 8 Jun 2023 00:29:48 +0300 Subject: [PATCH] Fixed: (Indexers) Allow RSS searches in HttpIndexerBase --- .../Definitions/TorrentRss/TorrentRssIndexer.cs | 2 ++ src/NzbDrone.Core/Indexers/HttpIndexerBase.cs | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/NzbDrone.Core/Indexers/Definitions/TorrentRss/TorrentRssIndexer.cs b/src/NzbDrone.Core/Indexers/Definitions/TorrentRss/TorrentRssIndexer.cs index c971f28e9..a151d5525 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/TorrentRss/TorrentRssIndexer.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/TorrentRss/TorrentRssIndexer.cs @@ -15,6 +15,8 @@ namespace NzbDrone.Core.Indexers.Definitions.TorrentRss public override string Description => "Generic RSS Feed containing torrents"; public override DownloadProtocol Protocol => DownloadProtocol.Torrent; public override IndexerPrivacy Privacy => IndexerPrivacy.Public; + public override bool SupportsRss => true; + public override bool SupportsSearch => false; public override int PageSize => 0; public override IndexerCapabilities Capabilities => SetCapabilities(); diff --git a/src/NzbDrone.Core/Indexers/HttpIndexerBase.cs b/src/NzbDrone.Core/Indexers/HttpIndexerBase.cs index 81c6f396a..6d7f91ece 100644 --- a/src/NzbDrone.Core/Indexers/HttpIndexerBase.cs +++ b/src/NzbDrone.Core/Indexers/HttpIndexerBase.cs @@ -56,7 +56,7 @@ namespace NzbDrone.Core.Indexers public override Task Fetch(MovieSearchCriteria searchCriteria) { - if (!SupportsSearch) + if (!SupportsSearch && !SupportsRss) { return Task.FromResult(new IndexerPageableQueryResult()); } @@ -71,7 +71,7 @@ namespace NzbDrone.Core.Indexers public override Task Fetch(MusicSearchCriteria searchCriteria) { - if (!SupportsSearch) + if (!SupportsSearch && !SupportsRss) { return Task.FromResult(new IndexerPageableQueryResult()); } @@ -86,7 +86,7 @@ namespace NzbDrone.Core.Indexers public override Task Fetch(TvSearchCriteria searchCriteria) { - if (!SupportsSearch) + if (!SupportsSearch && !SupportsRss) { return Task.FromResult(new IndexerPageableQueryResult()); } @@ -101,7 +101,7 @@ namespace NzbDrone.Core.Indexers public override Task Fetch(BookSearchCriteria searchCriteria) { - if (!SupportsSearch) + if (!SupportsSearch && !SupportsRss) { return Task.FromResult(new IndexerPageableQueryResult()); } @@ -116,7 +116,7 @@ namespace NzbDrone.Core.Indexers public override Task Fetch(BasicSearchCriteria searchCriteria) { - if (!SupportsSearch) + if (!SupportsSearch && !SupportsRss) { return Task.FromResult(new IndexerPageableQueryResult()); }