havent tested this but this shouldve been there from the beginning
This commit is contained in:
parent
5cfd64f8d4
commit
b203958ff2
@ -43,6 +43,7 @@ commands:Add('sc',{},'download soundcloud song (usage: "sc [link]")', function(t
|
|||||||
local songName
|
local songName
|
||||||
repeat
|
repeat
|
||||||
local str = s:read()
|
local str = s:read()
|
||||||
|
if str then
|
||||||
local tag = str:match('^%[(.+)%]')
|
local tag = str:match('^%[(.+)%]')
|
||||||
if tag=='soundcloud' then
|
if tag=='soundcloud' then
|
||||||
local song = str:match('^%[soundcloud%] (.+):')
|
local song = str:match('^%[soundcloud%] (.+):')
|
||||||
@ -50,6 +51,7 @@ commands:Add('sc',{},'download soundcloud song (usage: "sc [link]")', function(t
|
|||||||
songName = song:match('.+/(.+)')
|
songName = song:match('.+/(.+)')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
until s:read()==nil
|
until s:read()==nil
|
||||||
s:close()
|
s:close()
|
||||||
if type(songName)=='string' and songName~='' then
|
if type(songName)=='string' and songName~='' then
|
||||||
|
Loading…
Reference in New Issue
Block a user