function issupport(url)
    if url:match("yyfc.com/play.aspx") then return true end
    if url:match("yyfc.iq123.com") then return true end
    return false
end

function analyze(url)
    require('common')  
    local json = require('json')
    local p = urlparamdecode(url)
    url = "http://yyfc.iq123.com/playny.aspx?song_id="..p.song_id
    local req = {}
    req.agent = 'Mozilla/5.0 (Windows NT 5.1; rv:10.0) Gecko/20100101 Firefox/10.0'
    req.headers = {}
    req.headers['Accept-Encoding'] = 'gzip, deflate'
    local page = idown.requesturl(url, '', json:encode(req))
    print(page)
    local data = page:match('yyfcplay.player.create%(%[(.-)]%);')
    print(data)
    local jsondata = json:decode(data)
    local realurl = jsondata[8]
    print(realurl)
    local title = jsondata[4]
    title  = title:gsub('  .-$','')
    local result = {}
    result.realurl = realurl
    result.realname = title..getsuffix(realurl)
    result.title = title
    result.encode = 65001
    
    return 1, json:encode(result)
end