mirror of
https://github.com/Radarr/Radarr
synced 2026-01-25 08:53:02 +01:00
feat(indexer): enable book and audiobook support in Newznab/Torznab
This commit is contained in:
parent
2bf1fe4367
commit
bd6f7ece9c
2 changed files with 4 additions and 0 deletions
|
|
@ -7,6 +7,7 @@
|
|||
using NzbDrone.Common.Extensions;
|
||||
using NzbDrone.Common.Http;
|
||||
using NzbDrone.Core.Configuration;
|
||||
using NzbDrone.Core.MediaTypes;
|
||||
using NzbDrone.Core.Parser;
|
||||
using NzbDrone.Core.ThingiProvider;
|
||||
using NzbDrone.Core.Validation;
|
||||
|
|
@ -21,6 +22,7 @@ public class Newznab : HttpIndexerBase<NewznabSettings>
|
|||
|
||||
public override DownloadProtocol Protocol => DownloadProtocol.Usenet;
|
||||
public override int PageSize => GetProviderPageSize();
|
||||
public override IEnumerable<MediaType> SupportedMediaTypes => new[] { MediaType.Movie, MediaType.Book, MediaType.Audiobook };
|
||||
|
||||
public Newznab(INewznabCapabilitiesProvider capabilitiesProvider, IHttpClient httpClient, IIndexerStatusService indexerStatusService, IConfigService configService, IParsingService parsingService, Logger logger)
|
||||
: base(httpClient, indexerStatusService, configService, parsingService, logger)
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
using NzbDrone.Common.Http;
|
||||
using NzbDrone.Core.Configuration;
|
||||
using NzbDrone.Core.Indexers.Newznab;
|
||||
using NzbDrone.Core.MediaTypes;
|
||||
using NzbDrone.Core.Parser;
|
||||
using NzbDrone.Core.ThingiProvider;
|
||||
using NzbDrone.Core.Validation;
|
||||
|
|
@ -22,6 +23,7 @@ public class Torznab : HttpIndexerBase<TorznabSettings>
|
|||
|
||||
public override DownloadProtocol Protocol => DownloadProtocol.Torrent;
|
||||
public override int PageSize => GetProviderPageSize();
|
||||
public override IEnumerable<MediaType> SupportedMediaTypes => new[] { MediaType.Movie, MediaType.Book, MediaType.Audiobook };
|
||||
|
||||
public Torznab(INewznabCapabilitiesProvider capabilitiesProvider, IHttpClient httpClient, IIndexerStatusService indexerStatusService, IConfigService configService, IParsingService parsingService, Logger logger)
|
||||
: base(httpClient, indexerStatusService, configService, parsingService, logger)
|
||||
|
|
|
|||
Loading…
Reference in a new issue