Add all files
This commit is contained in:
18
download_soundcloud.py
Executable file
18
download_soundcloud.py
Executable file
@@ -0,0 +1,18 @@
|
||||
import sys
|
||||
from subprocess import call
|
||||
import subprocess
|
||||
def main():
|
||||
if (len(sys.argv) != 2):
|
||||
print("Wrong parameters!")
|
||||
sys.exit(-1)
|
||||
url = sys.argv[1].strip()
|
||||
print("passing link " + str(url))
|
||||
if ("soundcloud" not in url):
|
||||
print("Url has to be a soundcloud link!")
|
||||
sys.exit(-1)
|
||||
print("executing command")
|
||||
call("cd /home/sem/TODO\ MUSIC/",shell=True)
|
||||
call("./download-soundcloud.sh " + url,shell=True)
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user