mirror of https://github.com/Radarr/Radarr
Changed Name of Radarr Lists
This commit is contained in:
parent
6d033c57f4
commit
bae3a48aa1
|
@ -50,7 +50,7 @@ namespace NzbDrone.Core.NetImport
|
||||||
|
|
||||||
public List<INetImport> Discoverable()
|
public List<INetImport> Discoverable()
|
||||||
{
|
{
|
||||||
var enabledImporters = GetAvailableProviders().Where(n => (n.GetType() == typeof(Radarr.RadarrProxied) || n.GetType() == typeof(TMDb.TMDbImport)));
|
var enabledImporters = GetAvailableProviders().Where(n => (n.GetType() == typeof(Radarr.RadarrLists) || n.GetType() == typeof(TMDb.TMDbImport)));
|
||||||
var indexers = FilterBlockedIndexers(enabledImporters);
|
var indexers = FilterBlockedIndexers(enabledImporters);
|
||||||
return indexers.ToList();
|
return indexers.ToList();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,39 +1,39 @@
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using NLog;
|
using NLog;
|
||||||
using NzbDrone.Common.Http;
|
using NzbDrone.Common.Http;
|
||||||
using NzbDrone.Core.Configuration;
|
using NzbDrone.Core.Configuration;
|
||||||
using NzbDrone.Core.Parser;
|
using NzbDrone.Core.Parser;
|
||||||
using NzbDrone.Core.ThingiProvider;
|
using NzbDrone.Core.ThingiProvider;
|
||||||
using NzbDrone.Core.MetadataSource;
|
using NzbDrone.Core.MetadataSource;
|
||||||
|
|
||||||
|
|
||||||
namespace NzbDrone.Core.NetImport.Radarr
|
namespace NzbDrone.Core.NetImport.Radarr
|
||||||
{
|
{
|
||||||
public class RadarrProxied : HttpNetImportBase<RadarrSettings>
|
public class RadarrLists : HttpNetImportBase<RadarrSettings>
|
||||||
{
|
{
|
||||||
public override string Name => "Radarr Proxied Lists";
|
public override string Name => "Radarr Lists";
|
||||||
public override bool Enabled => true;
|
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;
|
||||||
private readonly ISearchForNewMovie _skyhookProxy;
|
private readonly ISearchForNewMovie _skyhookProxy;
|
||||||
|
|
||||||
public RadarrProxied(IHttpClient httpClient, IConfigService configService, IParsingService parsingService, ISearchForNewMovie skyhookProxy,
|
public RadarrLists(IHttpClient httpClient, IConfigService configService, IParsingService parsingService, ISearchForNewMovie skyhookProxy,
|
||||||
Logger logger)
|
Logger logger)
|
||||||
: base(httpClient, configService, parsingService, logger)
|
: base(httpClient, configService, parsingService, logger)
|
||||||
{
|
{
|
||||||
_skyhookProxy = skyhookProxy;
|
_skyhookProxy = skyhookProxy;
|
||||||
_logger = logger;
|
_logger = logger;
|
||||||
_httpClient = httpClient;
|
_httpClient = httpClient;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override IEnumerable<ProviderDefinition> GetDefaultDefinitions()
|
public override IEnumerable<ProviderDefinition> GetDefaultDefinitions()
|
||||||
{
|
{
|
||||||
foreach (var def in base.GetDefaultDefinitions())
|
foreach (var def in base.GetDefaultDefinitions())
|
||||||
{
|
{
|
||||||
yield return def;
|
yield return def;
|
||||||
}
|
}
|
||||||
|
|
||||||
yield return new NetImportDefinition
|
yield return new NetImportDefinition
|
||||||
{
|
{
|
||||||
|
@ -52,16 +52,16 @@ namespace NzbDrone.Core.NetImport.Radarr
|
||||||
ProfileId = 1,
|
ProfileId = 1,
|
||||||
Implementation = GetType().Name,
|
Implementation = GetType().Name,
|
||||||
Settings = new RadarrSettings { Path = "/imdb/popular" },
|
Settings = new RadarrSettings { Path = "/imdb/popular" },
|
||||||
};
|
};
|
||||||
yield return new NetImportDefinition
|
yield return new NetImportDefinition
|
||||||
{
|
{
|
||||||
Name = "IMDb List",
|
Name = "IMDb List",
|
||||||
Enabled = Enabled,
|
Enabled = Enabled,
|
||||||
EnableAuto = true,
|
EnableAuto = true,
|
||||||
ProfileId = 1,
|
ProfileId = 1,
|
||||||
Implementation = GetType().Name,
|
Implementation = GetType().Name,
|
||||||
Settings = new RadarrSettings { Path = "/imdb/list?listId=LISTID" },
|
Settings = new RadarrSettings { Path = "/imdb/list?listId=LISTID" },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
|
@ -27,7 +27,7 @@ namespace NzbDrone.Core.NetImport.Radarr
|
||||||
Path = "";
|
Path = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
[FieldDefinition(0, Label = "Radarr API URL", HelpText = "Link to to Radarr API URL.Use https://staging.api.radarr.video if you are on nightly.")]
|
[FieldDefinition(0, Label = "Radarr API URL", HelpText = "Link to to Radarr API URL. Use https://staging.api.radarr.video if you are on nightly.")]
|
||||||
public string APIURL { get; set; }
|
public string APIURL { get; set; }
|
||||||
|
|
||||||
[FieldDefinition(1, Label = "Path to list", HelpText = "Path to the list proxied by the Radarr API. Check the wiki for available lists.")]
|
[FieldDefinition(1, Label = "Path to list", HelpText = "Path to the list proxied by the Radarr API. Check the wiki for available lists.")]
|
||||||
|
|
|
@ -1289,7 +1289,7 @@
|
||||||
<Compile Include="NetImport\ImportExclusions\ImportExclusionsService.cs" />
|
<Compile Include="NetImport\ImportExclusions\ImportExclusionsService.cs" />
|
||||||
<Compile Include="Datastore\Migration\138_add_physical_release_note.cs" />
|
<Compile Include="Datastore\Migration\138_add_physical_release_note.cs" />
|
||||||
<Compile Include="Indexers\IIndexerSettings.cs" />
|
<Compile Include="Indexers\IIndexerSettings.cs" />
|
||||||
<Compile Include="NetImport\Radarr\RadarrProxied.cs" />
|
<Compile Include="NetImport\Radarr\RadarrLists.cs" />
|
||||||
<Compile Include="NetImport\Radarr\RadarrParser.cs" />
|
<Compile Include="NetImport\Radarr\RadarrParser.cs" />
|
||||||
<Compile Include="NetImport\Radarr\RadarrRequestGenerator.cs" />
|
<Compile Include="NetImport\Radarr\RadarrRequestGenerator.cs" />
|
||||||
<Compile Include="NetImport\Radarr\RadarrSettings.cs" />
|
<Compile Include="NetImport\Radarr\RadarrSettings.cs" />
|
||||||
|
|
Loading…
Reference in New Issue