소스 검색

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)