function issupport(url)
    if url:match("^http://soundcloud.com/") then return true end
    return false   
end

function analyze(url)
	local json=require('json')
	local page=idown.requesturl(url)
	local data=page:match('window.SC.bufferTracks.push%((.-)%);')
	local jsondata=json:decode(data)
	print(data)
	print(jsondata.title)
	local ret={}
	ret.title = jsondata.title
	ret.encode = 65001
	ret.realname = ret.title..'.mp3'
	ret.realurl = jsondata.streamUrl
	return 201,json:encode(ret)
end