mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 15:56:17 -07:00
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:
parent
c47e29c7c8
commit
5e6174c087
9 changed files with 144 additions and 17 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue