Bläddra i källkod

fixed download destination folder

mike 5 år sedan
förälder
incheckning
9598109419
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      ytsearch

+ 1 - 1
ytsearch

@@ -252,7 +252,7 @@ def downloadsong(link, song):
 ##Fix Destination Path
 ##Fix Destination Path
 ##HOW DID I DO THIS BEFORE??
 ##HOW DID I DO THIS BEFORE??
 #####
 #####
-         os.system("youtube-dl --extract-audio --audio-format best --audio-quality 0 --output '%(title)s.%(ext)s' --ignore-errors " + link)
+         os.system("youtube-dl --extract-audio --audio-format best --audio-quality 0 --output '''" + DESTFOLDER + "%(title)s.%(ext)s' --ignore-errors " + link)
          completed.append(song['songnum'])
          completed.append(song['songnum'])
          logresults.append(song['Title'] + ", " + song['Artist'] + " Audio downloaded")
          logresults.append(song['Title'] + ", " + song['Artist'] + " Audio downloaded")
          msg(song['Title'] + " Download Complete!", 2)
          msg(song['Title'] + " Download Complete!", 2)