function issupport(url)
    if url:find("^http://www.dj97.com/") then return true end
    return false
end

function analyze(url)
	print('-----------------------Enter analyze-----------------------')
	print('url:'..url)
    require('common')
    local json = require('json')
	local page = idown.requesturl(url)
	local filepath = page:match("var dance_file = '(.-)'")
	local realurl = 'http://m.dj97.com/djmusic/'..filepath..'.mp4'
	print(realurl)
	local title = page:match("var dance_name = '(.-)'")
    	local realfilename = title..'.mp4'

    	local result = {}
	result['realurl'] = realurl
	result['title'] = title
	result['realname'] = realfilename
	result.encode = 65001

	retstr = json:encode(result)
	print('ret:'..retstr)

	print('-----------------------Leave analyze-----------------------')
	return 1, retstr
end