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

function analyze(url)
	print('-----------------------Enter analyze-----------------------')
	print('url:'..url)
  local common = require('common')
	local json = require('json')
	local url2 = url:gsub('down_', 'download_')
	print('url2:'..url2)
	
	local page2 = idown.requesturl(url2)
	--print('page2:\n'..page2)

	realurl = page2:match('var thunder_url = "(.-)"')
	realfilename = getfilename(realurl)
	title = realfilename
	print('realfilename:'..realfilename)

	local result = {}
	result['realurl'] = realurl
	result['title'] = title
	result['realname'] = realfilename
	result['headers'] = {}
	result['headers']['Cookie'] = 'Flag=UURealAntiLink;'
	result['headers']['Referer'] = url2
	
	retstr = json:encode(result)    
	print('-----------------------Leave analyze-----------------------')
	print('ret:'..retstr)
	return 1, retstr
end