From 31c792468d7f14ace239b9c2176f56dea3f6de3b Mon Sep 17 00:00:00 2001 From: Akamaru Date: Sat, 19 Dec 2015 15:17:45 +0100 Subject: [PATCH] MP3-YT Download gefixt --- plugins/youtube_dl.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/youtube_dl.lua b/plugins/youtube_dl.lua index 6b31b9d..8bff00e 100644 --- a/plugins/youtube_dl.lua +++ b/plugins/youtube_dl.lua @@ -21,7 +21,7 @@ function run(msg, matches) if string.match(msg.text, "/mp3") then text = run_bash('youtube-dl -o "tmp/%(title)s.%(ext)s" --extract-audio --audio-format mp3 '..URL) - audio = string.match(text, 'Correcting container in "tmp/(.*).m4a"') + audio = string.match(text, '%[avconv%] Destination: tmp/(.*).mp3') file = 'tmp/'..audio..'.mp3' send_audio(get_receiver(msg), file, ok_cb, false) end