mirror of
https://github.com/Radarr/Radarr
synced 2025-01-01 12:54:21 +00:00
Added "Additional Parameters Field" for Trakt RSS Feed (#1308)
Added Additional Parameters field similar to Indexers
This commit is contained in:
parent
a9154559b8
commit
f4031f1e5f
2 changed files with 5 additions and 2 deletions
|
@ -89,7 +89,7 @@ private IEnumerable<NetImportRequest> GetMovies(string searchParameters)
|
||||||
{
|
{
|
||||||
var link = Settings.Link.Trim();
|
var link = Settings.Link.Trim();
|
||||||
|
|
||||||
var filtersAndLimit = $"?years={Settings.Years}&genres={Settings.Genres.ToLower()}&ratings={Settings.Rating}&certifications={Settings.Ceritification.ToLower()}&limit={Settings.Limit}";
|
var filtersAndLimit = $"?years={Settings.Years}&genres={Settings.Genres.ToLower()}&ratings={Settings.Rating}&certifications={Settings.Ceritification.ToLower()}&limit={Settings.Limit}{Settings.TraktAdditionalParameters}";
|
||||||
|
|
||||||
switch (Settings.ListType)
|
switch (Settings.ListType)
|
||||||
{
|
{
|
||||||
|
@ -129,7 +129,7 @@ private IEnumerable<NetImportRequest> GetMovies(string searchParameters)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
Authenticate();
|
Authenticate();
|
||||||
|
|
||||||
var request = new NetImportRequest($"{link}", HttpAccept.Json);
|
var request = new NetImportRequest($"{link}", HttpAccept.Json);
|
||||||
request.HttpRequest.Headers.Add("trakt-api-version", "2");
|
request.HttpRequest.Headers.Add("trakt-api-version", "2");
|
||||||
|
|
|
@ -96,6 +96,9 @@ public TraktSettings()
|
||||||
[FieldDefinition(8, Label = "Limit", HelpText = "Limit the number of movies to get")]
|
[FieldDefinition(8, Label = "Limit", HelpText = "Limit the number of movies to get")]
|
||||||
public int Limit { get; set; }
|
public int Limit { get; set; }
|
||||||
|
|
||||||
|
[FieldDefinition(9, Label = "Additional Parameters", HelpText = "Additional Trakt API parameters", Advanced = true)]
|
||||||
|
public string TraktAdditionalParameters { get; set; }
|
||||||
|
|
||||||
|
|
||||||
public NzbDroneValidationResult Validate()
|
public NzbDroneValidationResult Validate()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue