mirror of https://github.com/Radarr/Radarr
44 lines
1.5 KiB
C#
44 lines
1.5 KiB
C#
using NLog;
|
|
using NzbDrone.Common.Cloud;
|
|
using NzbDrone.Common.Http;
|
|
using NzbDrone.Core.Configuration;
|
|
using NzbDrone.Core.MetadataSource;
|
|
using NzbDrone.Core.Parser;
|
|
|
|
namespace NzbDrone.Core.ImportLists.TMDb.Person
|
|
{
|
|
public class TMDbPersonImport : TMDbImportListBase<TMDbPersonSettings>
|
|
{
|
|
public TMDbPersonImport(IRadarrCloudRequestBuilder requestBuilder,
|
|
IHttpClient httpClient,
|
|
IImportListStatusService importListStatusService,
|
|
IConfigService configService,
|
|
IParsingService parsingService,
|
|
ISearchForNewMovie searchForNewMovie,
|
|
Logger logger)
|
|
: base(requestBuilder, httpClient, importListStatusService, configService, parsingService, searchForNewMovie, logger)
|
|
{
|
|
}
|
|
|
|
public override string Name => "TMDb Person";
|
|
public override bool Enabled => true;
|
|
public override ImportListType EnableAuto => ImportListType.Manual;
|
|
|
|
public override IParseImportListResponse GetParser()
|
|
{
|
|
return new TMDbPersonParser(Settings);
|
|
}
|
|
|
|
public override IImportListRequestGenerator GetRequestGenerator()
|
|
{
|
|
return new TMDbPersonRequestGenerator()
|
|
{
|
|
RequestBuilder = _requestBuilder,
|
|
Settings = Settings,
|
|
Logger = _logger,
|
|
HttpClient = _httpClient
|
|
};
|
|
}
|
|
}
|
|
}
|