require"idownx"

function issupport(url)
	if url:match('ftp://') then return true end
	return false
end

function analyze(url)
	local title = getfilename(url)
	
	local result = {}
	result.title = title
	result.realname = title
	result.realurl = url
	result.debug = 1

	return 201,idown.encode(result)
end