mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 07:27:22 -06:00
Added %n (torrent name) parameter to external program call
This commit is contained in:
@@ -1977,6 +1977,8 @@ void QBtSession::autoRunExternalProgram(const QTorrentHandle &h, bool async) {
|
||||
else
|
||||
torrent_path = h.save_path();
|
||||
program.replace("%f", torrent_path);
|
||||
// Replace %n by torrent name
|
||||
program.replace("%n", h.name());
|
||||
QProcess *process = new QProcess;
|
||||
if(async) {
|
||||
connect(process, SIGNAL(finished(int)), this, SLOT(cleanUpAutoRunProcess(int)));
|
||||
|
||||
Reference in New Issue
Block a user