Add file name filter/blacklist

Blacklist filtered file names from being downloaded from torrent(s).
Files matching any of the filters in this list will have their priority automatically set to "Do not download".
See Options > Downloads >Do not download.

Closes #3369.
PR #17106.
This commit is contained in:
mxtsdev 2022-06-09 22:37:46 -07:00 committed by GitHub
parent c47e29c7c8
commit 5e6174c087
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 144 additions and 17 deletions

View file

@ -141,6 +141,8 @@ void AppController::preferencesAction()
data[u"scan_dirs"_qs] = nativeDirs;
// === END DEPRECATED CODE === //
data[u"excluded_file_names"_qs] = session->excludedFileNames().join(u'\n');
// Email notification upon download completion
data[u"mail_notification_enabled"_qs] = pref->isMailNotificationEnabled();
data[u"mail_notification_sender"_qs] = pref->getMailNotificationSender();
@ -476,6 +478,9 @@ void AppController::setPreferencesAction()
}
// === END DEPRECATED CODE === //
if (hasKey(u"excluded_file_names"_qs))
session->setExcludedFileNames(it.value().toString().split(u'\n'));
// Email notification upon download completion
if (hasKey(u"mail_notification_enabled"_qs))
pref->setMailNotificationEnabled(it.value().toBool());