mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 20:12:41 +02:00
Make list options advanced settings, Set min list sync
This commit is contained in:
parent
082a0679d2
commit
17f8eb3aae
@ -11,6 +11,7 @@ import translate from 'Utilities/String/translate';
|
||||
|
||||
function ImportListOptions(props) {
|
||||
const {
|
||||
advancedSettings,
|
||||
isFetching,
|
||||
error,
|
||||
settings,
|
||||
@ -27,6 +28,7 @@ function ImportListOptions(props) {
|
||||
];
|
||||
|
||||
return (
|
||||
advancedSettings &&
|
||||
<FieldSet legend={translate('Options')}>
|
||||
{
|
||||
isFetching &&
|
||||
@ -43,21 +45,27 @@ function ImportListOptions(props) {
|
||||
{
|
||||
hasSettings && !isFetching && !error &&
|
||||
<Form>
|
||||
<FormGroup>
|
||||
<FormGroup
|
||||
advancedSettings={advancedSettings}
|
||||
isAdvanced={true}
|
||||
>
|
||||
<FormLabel>{translate('ListUpdateInterval')}</FormLabel>
|
||||
|
||||
<FormInputGroup
|
||||
type={inputTypes.NUMBER}
|
||||
name="importListSyncInterval"
|
||||
min={0}
|
||||
unit="minutes"
|
||||
min={6}
|
||||
unit="hours"
|
||||
helpText={translate('ImportListSyncIntervalHelpText')}
|
||||
onChange={onInputChange}
|
||||
{...settings.importListSyncInterval}
|
||||
/>
|
||||
</FormGroup>
|
||||
|
||||
<FormGroup>
|
||||
<FormGroup
|
||||
advancedSettings={advancedSettings}
|
||||
isAdvanced={true}
|
||||
>
|
||||
<FormLabel>{translate('CleanLibraryLevel')}</FormLabel>
|
||||
|
||||
<FormInputGroup
|
||||
|
@ -120,7 +120,7 @@ public int AvailabilityDelay
|
||||
|
||||
public int ImportListSyncInterval
|
||||
{
|
||||
get { return GetValueInt("ImportListSyncInterval", 240); }
|
||||
get { return GetValueInt("ImportListSyncInterval", 24); }
|
||||
|
||||
set { SetValue("ImportListSyncInterval", value); }
|
||||
}
|
||||
|
@ -147,19 +147,10 @@ private int GetRssSyncInterval()
|
||||
|
||||
private int GetImportListSyncInterval()
|
||||
{
|
||||
var interval = _configService.ImportListSyncInterval;
|
||||
//Enforce 6 hour min on list sync
|
||||
var interval = Math.Max(_configService.ImportListSyncInterval, 6);
|
||||
|
||||
if (interval > 0 && interval < 10)
|
||||
{
|
||||
return 10;
|
||||
}
|
||||
|
||||
if (interval < 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
return interval;
|
||||
return interval * 60;
|
||||
}
|
||||
|
||||
public void Handle(CommandExecutedEvent message)
|
||||
|
@ -391,7 +391,7 @@
|
||||
"Importing": "Importing",
|
||||
"ImportListStatusCheckAllClientMessage": "All lists are unavailable due to failures",
|
||||
"ImportListStatusCheckSingleClientMessage": "Lists unavailable due to failures: {0}",
|
||||
"ImportListSyncIntervalHelpText": "How often Radarr syncs with your lists.",
|
||||
"ImportListSyncIntervalHelpText": "How often Radarr syncs with your lists. Minimum value of 6 hours",
|
||||
"ImportMechanismHealthCheckMessage": "Enable Completed Download Handling",
|
||||
"ImportMovies": "Import Movies",
|
||||
"ImportRootPath": "Point Radarr to the folder containing all of your movies, not a specific one. e.g. {0} and not {1}",
|
||||
|
Loading…
Reference in New Issue
Block a user