function issupport(url)
    if url:match("^http://ishare.iask.sina.com.cn/") then return true end
    return false   
end

function analyze(url)
    local json = require('json')
    require('common')
	local page = idown.requesturl(url)
	--print(page)
	local filename = page:match('name="file_title" .- value="(.-)"')
	print("filename:",filename)

	id = (url:match('/f/(%d*)'))
	page2 = idown.requesturl('http://ishare.sina.cn/dintro.php?id='..id)
	local realurl = page2:match('(http://sinastorage.cn/.-)"')
	print(realurl)

	local suffix = getsuffix(getfilename(realurl))
	if not filename:find(suffix) then filename = filename..suffix end
	local result = {}
	result['realname'] = filename
	result['realurl'] = realurl
	result['title'] = result['realname']

	local retstr = json:encode(result)
	print('ret:', retstr)
	return 1, retstr
end