youtube_dl Update

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

View File

@ -536,6 +536,7 @@ function unescape(str)
str = string.gsub(str, "&lt;", "<")
str = string.gsub(str, "&mdash;", "")
str = string.gsub(str, "&nabla;", "")
str = string.gsub(str, "&nbsp;", " ")
str = string.gsub(str, "&ndash;", "")
str = string.gsub(str, "&Psi;", "ψ")
str = string.gsub(str, "&psi;", "ψ")

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