avoid using user input (counter weird fonts)

This commit is contained in:
dowoge 2023-08-04 15:46:33 -04:00
parent 603ca0f6af
commit 258d52d1f4
No known key found for this signature in database
GPG Key ID: A868F67EA0425DD8

View File

@ -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()