From 81c7393b005aa1541cfc095cdabe189f0eadcb06 Mon Sep 17 00:00:00 2001 From: Akamaru Date: Sat, 11 Jun 2016 22:01:53 +0200 Subject: [PATCH] "/mp3" 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 719600f..8fff977 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, '%[avconv%] Destination: tmp/(.*).mp3') + audio = string.match(text, '%[ffmpeg%] Destination: tmp/(.*).mp3') file = 'tmp/'..audio..'.mp3' send_audio(get_receiver(msg), file, ok_cb, false) end