From 47cd43404de30b1e7879529a6a20a9c13bbeec30 Mon Sep 17 00:00:00 2001 From: Akamaru Date: Tue, 5 Apr 2016 19:58:11 +0200 Subject: [PATCH] youtube_dl Update --- bot/utils.lua | 1 + plugins/youtube_dl.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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