mirror of
https://github.com/Radarr/Radarr.git
synced 2025-04-18 19:54:44 -04:00
Translate settings for Radarr import list
This commit is contained in:
parent
40f41847fd
commit
cc56482819
3 changed files with 12 additions and 6 deletions
|
@ -47,7 +47,7 @@ namespace NzbDrone.Core.ImportLists.Radarr
|
|||
continue;
|
||||
}
|
||||
|
||||
if (Settings.TagIds.Any() && !Settings.TagIds.Any(x => remoteMovie.Tags.Any(y => y == x)))
|
||||
if (Settings.TagIds.Any() && !Settings.TagIds.Any(tagId => remoteMovie.Tags.Any(itemTagId => itemTagId == tagId)))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -27,19 +27,19 @@ namespace NzbDrone.Core.ImportLists.Radarr
|
|||
RootFolderPaths = Array.Empty<string>();
|
||||
}
|
||||
|
||||
[FieldDefinition(0, Label = "Full URL", HelpText = "URL, including port, of the Radarr instance to import from (Radarr 3.0 or higher)")]
|
||||
[FieldDefinition(0, Label = "ImportListsRadarrSettingsFullUrl", HelpText = "ImportListsRadarrSettingsFullUrlHelpText")]
|
||||
public string BaseUrl { get; set; } = string.Empty;
|
||||
|
||||
[FieldDefinition(1, Label = "API Key", Privacy = PrivacyLevel.ApiKey, HelpText = "Apikey of the Radarr instance to import from (Radarr 3.0 or higher)")]
|
||||
[FieldDefinition(1, Label = "ApiKey", Privacy = PrivacyLevel.ApiKey, HelpText = "ImportListsRadarrSettingsApiKeyHelpText")]
|
||||
public string ApiKey { get; set; }
|
||||
|
||||
[FieldDefinition(2, Type = FieldType.Select, SelectOptionsProviderAction = "getProfiles", Label = "Profiles", HelpText = "Profiles from the source instance to import from")]
|
||||
[FieldDefinition(2, Type = FieldType.Select, SelectOptionsProviderAction = "getProfiles", Label = "QualityProfiles", HelpText = "ImportListsRadarrSettingsQualityProfilesHelpText")]
|
||||
public IEnumerable<int> ProfileIds { get; set; }
|
||||
|
||||
[FieldDefinition(3, Type = FieldType.Select, SelectOptionsProviderAction = "getTags", Label = "Tags", HelpText = "Tags from the source instance to import from")]
|
||||
[FieldDefinition(3, Type = FieldType.Select, SelectOptionsProviderAction = "getTags", Label = "Tags", HelpText = "ImportListsRadarrSettingsTagsHelpText")]
|
||||
public IEnumerable<int> TagIds { get; set; }
|
||||
|
||||
[FieldDefinition(4, Type = FieldType.Select, SelectOptionsProviderAction = "getRootFolders", Label = "Root Folders", HelpText = "Root Folders from the source instance to import from")]
|
||||
[FieldDefinition(4, Type = FieldType.Select, SelectOptionsProviderAction = "getRootFolders", Label = "RootFolders", HelpText = "ImportListsRadarrSettingsRootFoldersHelpText")]
|
||||
public IEnumerable<string> RootFolderPaths { get; set; }
|
||||
|
||||
public override NzbDroneValidationResult Validate()
|
||||
|
|
|
@ -792,6 +792,12 @@
|
|||
"ImportListStatusCheckSingleClientMessage": "Lists unavailable due to failures: {importListNames}",
|
||||
"ImportLists": "Import Lists",
|
||||
"ImportListsLoadError": "Unable to load Import Lists",
|
||||
"ImportListsRadarrSettingsApiKeyHelpText": "API Key of the {appName} instance to import from (Radarr 3.0 or higher)",
|
||||
"ImportListsRadarrSettingsFullUrl": "Full URL",
|
||||
"ImportListsRadarrSettingsFullUrlHelpText": "URL, including port, of the {appName} instance to import from (Radarr 3.0 or higher)",
|
||||
"ImportListsRadarrSettingsQualityProfilesHelpText": "Quality Profiles from the source instance to import from",
|
||||
"ImportListsRadarrSettingsRootFoldersHelpText": "Root Folders from the source instance to import from",
|
||||
"ImportListsRadarrSettingsTagsHelpText": "Tags from the source instance to import from",
|
||||
"ImportListsSettingsSummary": "Import from another {appName} instance or Trakt lists and manage list exclusions",
|
||||
"ImportListsTraktSettingsAdditionalParameters": "Additional Parameters",
|
||||
"ImportListsTraktSettingsAdditionalParametersHelpText": "Additional Trakt API parameters",
|
||||
|
|
Loading…
Add table
Reference in a new issue