diff --git a/bot/utils.lua b/bot/utils.lua index fbcc936..578795c 100644 --- a/bot/utils.lua +++ b/bot/utils.lua @@ -536,6 +536,7 @@ function unescape(str) str = string.gsub(str, "<", "<") str = string.gsub(str, "—", "—") str = string.gsub(str, "∇", "∇") + str = string.gsub(str, " ", " ") str = string.gsub(str, "–", "–") str = string.gsub(str, "Ψ", "ψ") str = string.gsub(str, "ψ", "ψ") diff --git a/plugins/youtube_dl.lua b/plugins/youtube_dl.lua index c74c635..719600f 100644 --- a/plugins/youtube_dl.lua +++ b/plugins/youtube_dl.lua @@ -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