From 9db18902c4c312824543f6351c97d2cd3325c641 Mon Sep 17 00:00:00 2001 From: skid Date: Thu, 11 Jun 2020 15:10:23 +1000 Subject: [PATCH] Added filename parameter to "Command to execute after download" of single tracks --- deemix/app/downloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deemix/app/downloader.py b/deemix/app/downloader.py index b5db6ea..fed3be4 100644 --- a/deemix/app/downloader.py +++ b/deemix/app/downloader.py @@ -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']