--no-playlist --no-continue --max-filesize 15m
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
-- Requires: (sudo) apt-get install youtube-dl
|
||||
-- See https://github.com/rg3/youtube-dl/blob/master/README.md#options
|
||||
function run(msg, matches)
|
||||
URL = matches[1]
|
||||
local receiver = get_receiver(msg)
|
||||
if string.match(msg.text, '"') then
|
||||
return 'Vergiss es'
|
||||
else
|
||||
text = run_bash("rm tmp/video.mp4 && youtube-dl -o tmp/video.mp4 " .. URL)
|
||||
text = run_bash("youtube-dl -o tmp/video.mp4 --no-playlist --no-continue --max-filesize 15m " .. URL)
|
||||
send_video(get_receiver(msg), "tmp/video.mp4", ok_cb, false)
|
||||
return URL .. ' wurde gedownloadet und wird jetzt gesendet! \nDas kann je nach Video sehr lang dauern! \nAlso habt Geduld!'
|
||||
end
|
||||
|
Reference in New Issue
Block a user