2023-07-04 16:17:28 +00:00
|
|
|
using System;
|
2020-04-08 02:37:48 +00:00
|
|
|
using NLog;
|
2019-12-15 07:34:27 +00:00
|
|
|
using NzbDrone.Common.Cloud;
|
|
|
|
using NzbDrone.Common.Http;
|
|
|
|
using NzbDrone.Core.Configuration;
|
|
|
|
using NzbDrone.Core.MetadataSource;
|
|
|
|
using NzbDrone.Core.Parser;
|
|
|
|
|
2020-09-04 02:50:56 +00:00
|
|
|
namespace NzbDrone.Core.ImportLists.TMDb
|
2019-12-15 07:34:27 +00:00
|
|
|
{
|
2020-09-04 02:50:56 +00:00
|
|
|
public abstract class TMDbImportListBase<TSettings> : HttpImportListBase<TSettings>
|
2019-12-15 07:34:27 +00:00
|
|
|
where TSettings : TMDbSettingsBase<TSettings>, new()
|
|
|
|
{
|
2020-09-04 02:50:56 +00:00
|
|
|
public override ImportListType ListType => ImportListType.TMDB;
|
2023-07-04 16:17:28 +00:00
|
|
|
public override TimeSpan MinRefreshInterval => TimeSpan.FromHours(12);
|
2019-12-15 07:34:27 +00:00
|
|
|
|
|
|
|
public readonly ISearchForNewMovie _skyhookProxy;
|
|
|
|
public readonly IHttpRequestBuilderFactory _requestBuilder;
|
|
|
|
|
2020-09-04 02:50:56 +00:00
|
|
|
protected TMDbImportListBase(IRadarrCloudRequestBuilder requestBuilder,
|
2019-12-15 07:34:27 +00:00
|
|
|
IHttpClient httpClient,
|
2020-09-04 02:50:56 +00:00
|
|
|
IImportListStatusService importListStatusService,
|
2019-12-15 07:34:27 +00:00
|
|
|
IConfigService configService,
|
|
|
|
IParsingService parsingService,
|
|
|
|
ISearchForNewMovie skyhookProxy,
|
|
|
|
Logger logger)
|
2020-09-04 02:50:56 +00:00
|
|
|
: base(httpClient, importListStatusService, configService, parsingService, logger)
|
2019-12-15 07:34:27 +00:00
|
|
|
{
|
|
|
|
_skyhookProxy = skyhookProxy;
|
|
|
|
_requestBuilder = requestBuilder.TMDB;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|