Added executeCommand function at the end of download
This commit is contained in:
parent
1ed277e3a9
commit
4056c2e1cb
|
@ -39,6 +39,7 @@
|
||||||
"saveID3v1": true,
|
"saveID3v1": true,
|
||||||
"titleCasing": "nothing",
|
"titleCasing": "nothing",
|
||||||
"artistCasing": "nothing",
|
"artistCasing": "nothing",
|
||||||
|
"executeCommand": "",
|
||||||
"tags": {
|
"tags": {
|
||||||
"title": true,
|
"title": true,
|
||||||
"artist": true,
|
"artist": true,
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
from deemix.api.deezer import Deezer
|
from deemix.api.deezer import Deezer
|
||||||
from deemix.utils.misc import getIDFromLink, getTypeFromLink, getBitrateInt
|
from deemix.utils.misc import getIDFromLink, getTypeFromLink, getBitrateInt
|
||||||
from deemix.app.downloader import download_track, download_album, download_playlist, download_artist
|
from deemix.app.downloader import download_track, download_album, download_playlist, download_artist
|
||||||
|
from os import system as execute
|
||||||
|
|
||||||
dz = Deezer()
|
dz = Deezer()
|
||||||
|
|
||||||
|
@ -21,3 +22,6 @@ def downloadLink(url, settings, bitrate=None):
|
||||||
download_artist(dz, id, settings, forcedBitrate)
|
download_artist(dz, id, settings, forcedBitrate)
|
||||||
else:
|
else:
|
||||||
print("URL not supported yet")
|
print("URL not supported yet")
|
||||||
|
return None
|
||||||
|
if settings['executeCommand'] != "":
|
||||||
|
execute(settings['executeCommand'])
|
||||||
|
|
Loading…
Reference in New Issue