mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-03-28 19:11:29 -04:00
Remove the known malware feature (#489)
This commit is contained in:
@@ -87,7 +87,6 @@ export class DocumentationService {
|
||||
'cronExpression': 'cron-expression',
|
||||
'ignorePrivate': 'ignore-private',
|
||||
'deletePrivate': 'delete-private',
|
||||
'deleteKnownMalware': 'delete-known-malware',
|
||||
'sonarr.enabled': 'enable-blocklist',
|
||||
'sonarr.blocklistPath': 'blocklist-path',
|
||||
'sonarr.blocklistType': 'blocklist-type',
|
||||
|
||||
@@ -23,9 +23,6 @@
|
||||
hint="When enabled, the Malware blocker will run according to the schedule"
|
||||
helpKey="malware-blocker:enabled" />
|
||||
@if (enabled()) {
|
||||
<app-toggle label="Delete Known Malware" [(checked)]="deleteKnownMalware"
|
||||
hint="When enabled, downloads matching known malware patterns will be deleted"
|
||||
helpKey="malware-blocker:deleteKnownMalware" />
|
||||
<app-toggle label="Ignore Private Torrents" [(checked)]="ignorePrivate"
|
||||
hint="When enabled, private torrents will not be processed"
|
||||
helpKey="malware-blocker:ignorePrivate" />
|
||||
|
||||
@@ -62,7 +62,6 @@ export class MalwareBlockerComponent implements OnInit, HasPendingChanges {
|
||||
readonly ignoredDownloads = signal<string[]>([]);
|
||||
readonly ignorePrivate = signal(false);
|
||||
readonly deletePrivate = signal(false);
|
||||
readonly deleteKnownMalware = signal(false);
|
||||
readonly arrExpanded = signal(false);
|
||||
|
||||
readonly scheduleIntervalOptions = computed(() => {
|
||||
@@ -164,7 +163,6 @@ export class MalwareBlockerComponent implements OnInit, HasPendingChanges {
|
||||
this.ignoredDownloads.set(config.ignoredDownloads ?? []);
|
||||
this.ignorePrivate.set(config.ignorePrivate);
|
||||
this.deletePrivate.set(config.deletePrivate);
|
||||
this.deleteKnownMalware.set(config.deleteKnownMalware);
|
||||
|
||||
const blocklists: Record<string, any> = {};
|
||||
for (const name of ARR_NAMES) {
|
||||
@@ -220,7 +218,6 @@ export class MalwareBlockerComponent implements OnInit, HasPendingChanges {
|
||||
ignoredDownloads: this.ignoredDownloads(),
|
||||
ignorePrivate: this.ignorePrivate(),
|
||||
deletePrivate: this.deletePrivate(),
|
||||
deleteKnownMalware: this.deleteKnownMalware(),
|
||||
sonarr: { enabled: blocklists['sonarr'].enabled, blocklistPath: blocklists['sonarr'].blocklistPath, blocklistType: blocklists['sonarr'].blocklistType as BlocklistType },
|
||||
radarr: { enabled: blocklists['radarr'].enabled, blocklistPath: blocklists['radarr'].blocklistPath, blocklistType: blocklists['radarr'].blocklistType as BlocklistType },
|
||||
lidarr: { enabled: blocklists['lidarr'].enabled, blocklistPath: blocklists['lidarr'].blocklistPath, blocklistType: blocklists['lidarr'].blocklistType as BlocklistType },
|
||||
@@ -256,7 +253,6 @@ export class MalwareBlockerComponent implements OnInit, HasPendingChanges {
|
||||
ignoredDownloads: this.ignoredDownloads(),
|
||||
ignorePrivate: this.ignorePrivate(),
|
||||
deletePrivate: this.deletePrivate(),
|
||||
deleteKnownMalware: this.deleteKnownMalware(),
|
||||
arrBlocklists: this.arrBlocklists(),
|
||||
});
|
||||
}
|
||||
|
||||
@@ -21,7 +21,6 @@ export interface MalwareBlockerConfig {
|
||||
ignoredDownloads: string[];
|
||||
ignorePrivate: boolean;
|
||||
deletePrivate: boolean;
|
||||
deleteKnownMalware: boolean;
|
||||
sonarr: BlocklistSettings;
|
||||
radarr: BlocklistSettings;
|
||||
lidarr: BlocklistSettings;
|
||||
|
||||
Reference in New Issue
Block a user