Allow to pass torrent comment to external program

PR #22771.
Closes #13186.
This commit is contained in:
Vladimir Golovnev 2025-05-26 15:35:51 +03:00 committed by GitHub
parent a3d1ff0eb2
commit f47754838b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 0 deletions

View file

@ -575,6 +575,9 @@ void Application::runExternalProgram(const QString &programTemplate, const BitTo
case u'L':
str.replace(i, 2, torrent->category());
break;
case u'M':
str.replace(i, 2, torrent->comment());
break;
case u'N':
str.replace(i, 2, torrent->name());
break;