youtube_dl Update
This commit is contained in:
parent
5fc6a9dc00
commit
47cd43404d
@ -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, "ψ", "ψ")
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user