mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-06 02:52:41 +01:00
Roll back some code on Net Import (#772)
This commit is contained in:
parent
9c20c0b889
commit
363048e68e
@ -16,13 +16,31 @@ namespace NzbDrone.Core.NetImport.CouchPotato
|
|||||||
public class CouchPotatoImport : HttpNetImportBase<CouchPotatoSettings>
|
public class CouchPotatoImport : HttpNetImportBase<CouchPotatoSettings>
|
||||||
{
|
{
|
||||||
public override string Name => "CouchPotato";
|
public override string Name => "CouchPotato";
|
||||||
public override bool Enabled => false;
|
public override bool Enabled => true;
|
||||||
public override bool EnableAuto => false;
|
public override bool EnableAuto => false;
|
||||||
|
|
||||||
public CouchPotatoImport(IHttpClient httpClient, IConfigService configService, IParsingService parsingService, Logger logger)
|
public CouchPotatoImport(IHttpClient httpClient, IConfigService configService, IParsingService parsingService, Logger logger)
|
||||||
: base(httpClient, configService, parsingService, logger)
|
: base(httpClient, configService, parsingService, logger)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
/*public new virtual IEnumerable<ProviderDefinition> DefaultDefinitions
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
var config = (CouchPotatoSettings)new CouchPotatoSettings();
|
||||||
|
config.Link = "http://localhost";
|
||||||
|
config.Port = "5050";
|
||||||
|
|
||||||
|
yield return new NetImportDefinition
|
||||||
|
{
|
||||||
|
Name = "Localhost",
|
||||||
|
Enabled = config.Validate().IsValid && Enabled,
|
||||||
|
Implementation = GetType().Name,
|
||||||
|
Settings = config
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}*/
|
||||||
|
|
||||||
public override INetImportRequestGenerator GetRequestGenerator()
|
public override INetImportRequestGenerator GetRequestGenerator()
|
||||||
{
|
{
|
||||||
return new CouchPotatoRequestGenerator() { Settings = Settings };
|
return new CouchPotatoRequestGenerator() { Settings = Settings };
|
||||||
|
@ -15,9 +15,9 @@ namespace NzbDrone.Core.NetImport.RSSImport
|
|||||||
{
|
{
|
||||||
public class RSSImport : HttpNetImportBase<RSSImportSettings>
|
public class RSSImport : HttpNetImportBase<RSSImportSettings>
|
||||||
{
|
{
|
||||||
public override string Name => "RSS";
|
public override string Name => "RSSList";
|
||||||
public override bool Enabled => false;
|
public override bool Enabled => true;
|
||||||
public override bool EnableAuto => false;
|
public override bool EnableAuto => true;
|
||||||
|
|
||||||
public RSSImport(IHttpClient httpClient, IConfigService configService, IParsingService parsingService, Logger logger)
|
public RSSImport(IHttpClient httpClient, IConfigService configService, IParsingService parsingService, Logger logger)
|
||||||
: base(httpClient, configService, parsingService, logger)
|
: base(httpClient, configService, parsingService, logger)
|
||||||
|
@ -16,8 +16,8 @@ namespace NzbDrone.Core.NetImport.StevenLu
|
|||||||
public class StevenLuImport : HttpNetImportBase<StevenLuSettings>
|
public class StevenLuImport : HttpNetImportBase<StevenLuSettings>
|
||||||
{
|
{
|
||||||
public override string Name => "StevenLu";
|
public override string Name => "StevenLu";
|
||||||
public override bool Enabled => false;
|
public override bool Enabled => true;
|
||||||
public override bool EnableAuto => false;
|
public override bool EnableAuto => true;
|
||||||
|
|
||||||
public StevenLuImport(IHttpClient httpClient, IConfigService configService, IParsingService parsingService, Logger logger)
|
public StevenLuImport(IHttpClient httpClient, IConfigService configService, IParsingService parsingService, Logger logger)
|
||||||
: base(httpClient, configService, parsingService, logger)
|
: base(httpClient, configService, parsingService, logger)
|
||||||
|
@ -8,8 +8,8 @@ namespace NzbDrone.Core.NetImport.TMDb
|
|||||||
{
|
{
|
||||||
public class TMDbImport : HttpNetImportBase<TMDbSettings>
|
public class TMDbImport : HttpNetImportBase<TMDbSettings>
|
||||||
{
|
{
|
||||||
public override string Name => "TMDb";
|
public override string Name => "TMDb Lists";
|
||||||
public override bool Enabled => false;
|
public override bool Enabled => true;
|
||||||
public override bool EnableAuto => false;
|
public override bool EnableAuto => false;
|
||||||
private readonly IHttpClient _httpClient;
|
private readonly IHttpClient _httpClient;
|
||||||
private readonly Logger _logger;
|
private readonly Logger _logger;
|
||||||
@ -37,4 +37,4 @@ public override IParseNetImportResponse GetParser()
|
|||||||
return new TMDbParser(Settings);
|
return new TMDbParser(Settings);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -15,8 +15,8 @@ namespace NzbDrone.Core.NetImport.Trakt
|
|||||||
{
|
{
|
||||||
public class TraktImport : HttpNetImportBase<TraktSettings>
|
public class TraktImport : HttpNetImportBase<TraktSettings>
|
||||||
{
|
{
|
||||||
public override string Name => "Trakt";
|
public override string Name => "Trakt List";
|
||||||
public override bool Enabled => false;
|
public override bool Enabled => true;
|
||||||
public override bool EnableAuto => false;
|
public override bool EnableAuto => false;
|
||||||
|
|
||||||
public TraktImport(IHttpClient httpClient, IConfigService configService, IParsingService parsingService, Logger logger)
|
public TraktImport(IHttpClient httpClient, IConfigService configService, IParsingService parsingService, Logger logger)
|
||||||
|
Loading…
Reference in New Issue
Block a user