avoid using user input (counter weird fonts)
This commit is contained in:
parent
603ca0f6af
commit
258d52d1f4
@ -39,7 +39,7 @@ commands:Add('sc',{},'download soundcloud song (usage: "sc [link]")', function(t
|
|||||||
local link=args[1]:match('https://soundcloud.com/[%w-_]+/[%w-_]+')
|
local link=args[1]:match('https://soundcloud.com/[%w-_]+/[%w-_]+')
|
||||||
message:reply('Attempting to download song from <'..link..'>')
|
message:reply('Attempting to download song from <'..link..'>')
|
||||||
local filepath = ''
|
local filepath = ''
|
||||||
local s=io.popen('ytdl.exe -o "./tmp/%(fulltitle)s.%(ext)s" '..link)
|
local s=io.popen('ytdl.exe -o "./tmp/%(uploader_id)s-%(display_id)s.%(ext)s" '..link)
|
||||||
local songName
|
local songName
|
||||||
repeat
|
repeat
|
||||||
local str = s:read()
|
local str = s:read()
|
||||||
|
Loading…
Reference in New Issue
Block a user