Ver Fonte

fixed download destination folder

mike há 5 anos atrás
pai
commit
9598109419
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      ytsearch

+ 1 - 1
ytsearch

@@ -252,7 +252,7 @@ def downloadsong(link, song):
 ##Fix Destination Path
 ##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'])
          logresults.append(song['Title'] + ", " + song['Artist'] + " Audio downloaded")
          msg(song['Title'] + " Download Complete!", 2)