mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-03-26 01:52:41 -04:00
Add category change for downloads with no additional hardlinks (#65)
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
import React from "react";
|
||||
import EnvVars, { EnvVarProps } from "../EnvVars";
|
||||
|
||||
const settings: EnvVarProps[] = [
|
||||
{
|
||||
name: "DOWNLOADCLEANER__UNLINKED_TARGET_CATEGORY",
|
||||
description: [
|
||||
"The category to set on downloads that do not have hardlinks."
|
||||
],
|
||||
type: "text",
|
||||
defaultValue: "cleanuperr-unlinked",
|
||||
required: false,
|
||||
},
|
||||
{
|
||||
name: "DOWNLOADCLEANER__UNLINKED_IGNORED_ROOT_DIR",
|
||||
description: [
|
||||
"This is useful if you are using [cross-seed](https://www.cross-seed.org/).",
|
||||
"The downloads root directory where the original and cross-seed hardlinks reside. All other hardlinks from this directory will be treated as if they do not exist (e.g. if you have a download with the original file and a cross-seed hardlink, it will be deleted).",
|
||||
],
|
||||
type: "text",
|
||||
defaultValue: "Empty",
|
||||
required: false,
|
||||
},
|
||||
{
|
||||
name: "DOWNLOADCLEANER__UNLINKED_CATEGORIES__0",
|
||||
description: [
|
||||
"The categories of downloads to check for available hardlinks.",
|
||||
{
|
||||
type: "code",
|
||||
title: "Multiple patterns can be specified using incrementing numbers starting from 0.",
|
||||
content: `DOWNLOADCLEANER__UNLINKED_CATEGORIES__0=tv-sonarr
|
||||
DOWNLOADCLEANER__UNLINKED_CATEGORIES__1=radarr`
|
||||
}
|
||||
],
|
||||
type: "text",
|
||||
defaultValue: "Empty",
|
||||
required: false,
|
||||
}
|
||||
];
|
||||
|
||||
export default function DownloadCleanerHardlinksSettings() {
|
||||
return <EnvVars vars={settings} />;
|
||||
}
|
||||
@@ -68,6 +68,16 @@ const settings: EnvVarProps[] = [
|
||||
required: false,
|
||||
acceptedValues: ["true", "false"],
|
||||
},
|
||||
{
|
||||
name: "APPRISE__ON_CATEGORY_CHANGED",
|
||||
description: [
|
||||
"Controls whether to notify when a download's category is changed."
|
||||
],
|
||||
type: "boolean",
|
||||
defaultValue: "false",
|
||||
required: false,
|
||||
acceptedValues: ["true", "false"],
|
||||
}
|
||||
];
|
||||
|
||||
export default function AppriseSettings() {
|
||||
|
||||
@@ -70,6 +70,16 @@ const settings: EnvVarProps[] = [
|
||||
defaultValue: "false",
|
||||
required: false,
|
||||
acceptedValues: ["true", "false"],
|
||||
},
|
||||
{
|
||||
name: "NOTIFIARR__ON_CATEGORY_CHANGED",
|
||||
description: [
|
||||
"Controls whether to notify when a download's category is changed."
|
||||
],
|
||||
type: "boolean",
|
||||
defaultValue: "false",
|
||||
required: false,
|
||||
acceptedValues: ["true", "false"],
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user