havent tested this but this shouldve been there from the beginning
This commit is contained in:
parent
5cfd64f8d4
commit
b203958ff2
@ -43,11 +43,13 @@ 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()
|
||||||
local tag = str:match('^%[(.+)%]')
|
if str then
|
||||||
if tag=='soundcloud' then
|
local tag = str:match('^%[(.+)%]')
|
||||||
local song = str:match('^%[soundcloud%] (.+):')
|
if tag=='soundcloud' then
|
||||||
if song:match('%d+')~=song then
|
local song = str:match('^%[soundcloud%] (.+):')
|
||||||
songName = song:match('.+/(.+)')
|
if song:match('%d+')~=song then
|
||||||
|
songName = song:match('.+/(.+)')
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
until s:read()==nil
|
until s:read()==nil
|
||||||
|
Loading…
Reference in New Issue
Block a user