"/mp3" gefixt
This commit is contained in:
parent
e5fcce9cbe
commit
81c7393b00
@ -21,7 +21,7 @@ function run(msg, matches)
|
|||||||
|
|
||||||
if string.match(msg.text, "/mp3") then
|
if string.match(msg.text, "/mp3") then
|
||||||
text = run_bash('youtube-dl -o "tmp/%(title)s.%(ext)s" --extract-audio --audio-format mp3 '..URL)
|
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'
|
file = 'tmp/'..audio..'.mp3'
|
||||||
send_audio(get_receiver(msg), file, ok_cb, false)
|
send_audio(get_receiver(msg), file, ok_cb, false)
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user