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

function analyze(url)
    require('common')
	print('-----------------------Enter analyze-----------------------')
	print('url:'..url)
	
	local page = idown.requesturl(url)
	--print('page:\n'..page)
	
	--获得文件地址
	local realurl = page:match('<param name="movie" value="(.-)"')
	print('realurl:',realurl)

    --获取标题
	local title = page:match('<title>(.*)－eNet网络学院</title>')
	print('title:',title)
	
	--获取文件后缀
	local realfilename = title..getsuffix(realurl)
	print('realfilename:',realfilename)

	json = require('json')

	result = {}
	result['realurl'] = realurl
	result['title'] = title
	result['realname'] = realfilename

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