Added executeCommand function at the end of download

This commit is contained in:
RemixDev 2020-03-21 11:53:43 +01:00
parent 1ed277e3a9
commit 4056c2e1cb
2 changed files with 5 additions and 0 deletions

View File

@ -39,6 +39,7 @@
"saveID3v1": true,
"titleCasing": "nothing",
"artistCasing": "nothing",
"executeCommand": "",
"tags": {
"title": true,
"artist": true,

View File

@ -2,6 +2,7 @@
from deemix.api.deezer import Deezer
from deemix.utils.misc import getIDFromLink, getTypeFromLink, getBitrateInt
from deemix.app.downloader import download_track, download_album, download_playlist, download_artist
from os import system as execute
dz = Deezer()
@ -21,3 +22,6 @@ def downloadLink(url, settings, bitrate=None):
download_artist(dz, id, settings, forcedBitrate)
else:
print("URL not supported yet")
return None
if settings['executeCommand'] != "":
execute(settings['executeCommand'])