require('idownx')

function issupport(url)
if url:match('.wo99.com') then return true end
return false
end

function analyze(url)
local page = idown.requesturl(url)
local realurl = page:match('<param name="url" value="(.-)"')
local title = page:match('<title>(.-) %- wo99.com')
local realname = title..'.mp3'

local result = {
realurl = realurl,
title = title,
realname = realname,
}
return idown.ERR_SINGLE_FILE, idown.encode(result)
end