Added filename parameter to "Command to execute after download" of single tracks

This commit is contained in:
skid 2020-06-11 15:10:23 +10:00
parent 8218cbb5e1
commit 9db18902c4
1 changed files with 1 additions and 1 deletions

View File

@ -936,7 +936,7 @@ def after_download_single(track, settings, queueItem):
f.write(orig.encode('utf-8'))
chmod(os.path.join(track['extrasPath'], 'searched.txt'), 0o770)
if settings['executeCommand'] != "":
execute(settings['executeCommand'].replace("%folder%", track['extrasPath']))
execute(settings['executeCommand'].replace("%folder%", track['extrasPath']).replace("%filename%", track['playlistPosition']))
return track['extrasPath']