Skip to content

Commit

Permalink
fix: update to new youtube-dl cli args
Browse files Browse the repository at this point in the history
  • Loading branch information
manbearwiz authored Dec 28, 2016
1 parent 6821ef2 commit 7f607c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube-dl-server.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def dl_worker():

def download(url):
print("Starting download of " + url)
command = """youtube-dl -o "/youtube-dl/.incomplete/%(title)s.%(ext)s" -f best[acodec=none][ext=mp4]+best[vcodec=none][ext=m4a] --exec 'touch {} && mv {} /youtube-dl/' --merge-output-format mp4 """ + url
command = """youtube-dl -o "/youtube-dl/.incomplete/%(title)s.%(ext)s" -f bestvideo+bestaudio/best[ext=mp4]/best --exec 'touch {} && mv {} /youtube-dl/' --merge-output-format mp4 """ + url
subprocess.call(command, shell=True)
print("Finished downloading " + url)

Expand Down

0 comments on commit 7f607c5

Please sign in to comment.