--http://static.youku.com/v1.0.0025/v/swf/qplayer.swf?VideoIDS=XMzkzOTIyMTM2
function issupport(url)
    if url:match('^http://%w+.178.com/') then return true end
    return false
end

function analyze(url)
    print('-----------------------enter analyze-----------------------')
    print('url:'..url)
    
    local json = require('json')
    require('common')
    
    --´ò¿ªÍøÕ¾
    local page1 = idown.requesturl(url)
s = page1:match('src="(http://static.youku.com/.-)"')	
print(s)
s = unescapexml(s)
print(s)
	
p = urlparamdecode(s)
    u = string.format('http://v.youku.com/v_show/id_%s.html', p.VideoIDS) 
    result={}
    result.Location=u
    retstr=json:encode(result)
		print('-----------------------leave analyze-----------------------')
    return 301,retstr
end