function issupport(url)
    if url:match("^thunder://") then return true end
    return false   
end

function analyze(url)
    json = require('json')
    require('common')

	realurl = string.gsub(url, '^thunder://', '')
	realurl = idown.crypt.base64decode(realurl)
	realurl = string.gsub(realurl, '^AA', '')
	realurl = string.gsub(realurl, 'ZZ$', '')
	print(realurl)
	
	title = getfilename(realurl)
	realfilename = title

	result = {}
	result['realurl'] = realurl
	result['title'] = title
	result['realname'] = realfilename

	retstr = json:encode(result)
	print('ret:'..retstr)
	
	return 1, retstr	
end