fixed soundcloud downloading (for now) removed youtube download

This commit is contained in:
tommy aka doge 2022-08-24 17:23:14 -04:00
parent c8f5e9c823
commit 23fb333a9e

View File

@ -1,42 +1,42 @@
-- local discordia=require('discordia') local discordia=require('discordia')
-- local API=require('./../strafes_net.lua') local API=require('./../strafes_net.lua')
-- discordia.extensions() discordia.extensions()
-- API.MAPS={} API.MAPS={}
-- for _,game in next,API.GAMES do for _,game in next,API.GAMES do
-- if type(tonumber(game)) == 'number' then if type(tonumber(game)) == 'number' then
-- local maps = {count=0} local maps = {count=0}
-- local res,headers = API:GetMaps(game) local res,headers = API:GetMaps(game)
-- local pages = tonumber(headers['Pagination-Count']) local pages = tonumber(headers['Pagination-Count'])
-- maps.count=maps.count+#res maps.count=maps.count+#res
-- for _,v in next,res do for _,v in next,res do
-- maps[v.ID]=v maps[v.ID]=v
-- end end
-- if pages>1 then if pages>1 then
-- for i=2,pages do for i=2,pages do
-- res,headers = API:GetMaps(game,i) res,headers = API:GetMaps(game,i)
-- maps.count=maps.count+#res maps.count=maps.count+#res
-- for _,j in next,res do for _,j in next,res do
-- maps[j.ID]=j maps[j.ID]=j
-- end end
-- end end
-- end end
-- setmetatable(maps,{__index=function(self,i) setmetatable(maps,{__index=function(self,i)
-- if i=='count' then return self.count end if i=='count' then return self.count end
-- if not tonumber(i) then if not tonumber(i) then
-- for ix,v in next,self do for ix,v in next,self do
-- if type(v)=='table' and v.DisplayName:lower():find(i:lower()) then if type(v)=='table' and v.DisplayName:lower():find(i:lower()) then
-- return v return v
-- end end
-- end end
-- elseif tonumber(i) then elseif tonumber(i) then
-- for ix,v in next,self do for ix,v in next,self do
-- if type(v)=='table' and v.ID==i then if type(v)=='table' and v.ID==i then
-- return v return v
-- end end
-- end end
-- end end
-- end}) end})
-- API.MAPS[game]=maps API.MAPS[game]=maps
-- print('map init done for game:',API.GAMES[game],'count:',API.MAPS[game].count) print('map init done for game:',API.GAMES[game],'count:',API.MAPS[game].count)
-- end end
-- end end