From 4d5ef2850e4387d640da563e999ec8d2ca4137ce Mon Sep 17 00:00:00 2001 From: RemixDev Date: Sun, 25 Jul 2021 11:38:08 +0200 Subject: [PATCH] Fixed #10 --- deemix/downloader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deemix/downloader.py b/deemix/downloader.py index 5ca1f88..c030b8e 100644 --- a/deemix/downloader.py +++ b/deemix/downloader.py @@ -509,7 +509,7 @@ class Downloader: # Execute command after download if self.settings['executeCommand'] != "": - execute(self.settings['executeCommand'].replace("%folder%", quote(str(self.extrasPath))).replace("%filename%", quote(track['filename'])), shell=True) + execute(self.settings['executeCommand'].replace("%folder%", quote(str(self.extrasPath))).replace("%filename%", quote(track['filename']))) def afterDownloadCollection(self, tracks): if not self.extrasPath: self.extrasPath = Path(self.settings['downloadLocation']) @@ -566,7 +566,7 @@ class Downloader: # Execute command after download if self.settings['executeCommand'] != "": - execute(self.settings['executeCommand'].replace("%folder%", quote(str(self.extrasPath))), shell=True) + execute(self.settings['executeCommand'].replace("%folder%", quote(str(self.extrasPath)))) class DownloadError(Exception): """Base class for exceptions in this module."""