Add category change for downloads with no additional hardlinks (#65)

This commit is contained in:
Flaminel
2025-05-04 17:26:51 +03:00
committed by GitHub
parent 8cfc73213a
commit 693f80fe6a
49 changed files with 1255 additions and 123 deletions

View File

@@ -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} />;
}

View File

@@ -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() {

View File

@@ -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"],
}
];