瀏覽代碼

fixed download destination folder

mike 5 年之前
父節點
當前提交
9598109419
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)