From 258d52d1f48f2fbfafca64dbf47426031118463e Mon Sep 17 00:00:00 2001 From: dowoge Date: Fri, 4 Aug 2023 15:46:33 -0400 Subject: [PATCH] avoid using user input (counter weird fonts) --- src/modules/commands/download.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/commands/download.lua b/src/modules/commands/download.lua index 3f5e020..34c2ac1 100644 --- a/src/modules/commands/download.lua +++ b/src/modules/commands/download.lua @@ -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-_]+') message:reply('Attempting to download song from <'..link..'>') 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 repeat local str = s:read()