function issupport(url)
    if url:match("^http://www.vdisk.cn/") then return true end
    return false   
end

function analyze(url)
	print('-----------------------Enter analyze-----------------------')
	print('url:'..url)
    local json = require('json')
    require('common')
	
	local page = idown.requesturl(url)

	realurl = page:match('name="httpfileurl" content="(.-)"')
	realfilename = unescape(realurl:sub(realurl:find('filename=.-$')))
	realfilename = realfilename:gsub('filename=', '')
	title = realfilename
	print(title)
	
	result = {}
	result['realurl'] = realurl
	result['title'] = title
	result['realname'] = realfilename
	result['encode'] = 65001

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