function issupport(url)
    if url:match("^http://www.dj%-dj.net/") then return true end
    return false
end

function analyze(url)
    require('common')
	print('url:'..url)
    local json = require('json')
	--´ò¿ªÒ³Ãæ
	page = idown.requesturl(url, '', 'http://www.dj-dj.net/')
	--print(page)
	
	url2 = 'http://www.dj-dj.net'..page:match("theFile%':%'([^']*)")..'&812'
	playerurl = 'http://www.dj-dj.net/flvjs/mediaplayer.swf'
	page2 = idown.requesturl(url2, '', playerurl)
	--print(page2)
				
	title = page2:match('<title>(.-)</title>')
	realurl = page2:gmatch('<location>(.-)</location>')
	
	realfilename = title..getsuffix(realurl)
	print('realfilename:'..realfilename)
	
	result = {}
	result['realurl'] = realurl
	result['title'] = title
	result['realname'] = realfilename
	result['encode'] = 65001

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