require('common')
function issupport(url)       
    if url:match("http://www.tadu.com/book/") then return true end
    return false   
end

function analyze(url)
local json = require('json')	
local page = idown.requesturl(url)
local content=page:match('%)%.html%(unescape%("(.-)~"%)%);')
print(content)
local content1= unescape(content)    
print(idown.toansi(content1))   
local result = {}
		result.encode = 65001
		result.title = page:match('class="c6"><em>(.-)</em>')
                
               
result.files={
		[1]={
		content=content1,
		realname=result.title.."\\"..page:match('mb_25"><strong>(.-)</strong>')..".htm",
		}
		} 
        return 202, json:encode(result)
end