youtube_dl Update

This commit is contained in:
2016-04-05 19:58:11 +02:00
parent 5fc6a9dc00
commit 47cd43404d
2 changed files with 2 additions and 1 deletions

View File

@ -10,7 +10,7 @@ function run(msg, matches)
if string.match(msg.text, "/mp4") then
text = run_bash('youtube-dl -o "tmp/%(title)s.%(ext)s" '..URL)
video = string.match(text, '%[download%] Destination: tmp/(.*).mp4')
video = string.match(text, 'Merging formats into "tmp/(.*).mp4"')
if not video then
file = string.match(text, '%[download%] (.*) has already been downloaded')
else