Added filename parameter to "Command to execute after download" of single tracks
This commit is contained in:
parent
8218cbb5e1
commit
9db18902c4
|
@ -936,7 +936,7 @@ def after_download_single(track, settings, queueItem):
|
||||||
f.write(orig.encode('utf-8'))
|
f.write(orig.encode('utf-8'))
|
||||||
chmod(os.path.join(track['extrasPath'], 'searched.txt'), 0o770)
|
chmod(os.path.join(track['extrasPath'], 'searched.txt'), 0o770)
|
||||||
if settings['executeCommand'] != "":
|
if settings['executeCommand'] != "":
|
||||||
execute(settings['executeCommand'].replace("%folder%", track['extrasPath']))
|
execute(settings['executeCommand'].replace("%folder%", track['extrasPath']).replace("%filename%", track['playlistPosition']))
|
||||||
return track['extrasPath']
|
return track['extrasPath']
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue