def getTitle(self, url):
    title = 'unnamed_file'
    bt_type = self.detectProtrolType(url)
    if (bt_type in [PROTROL_TYEP.HTTP, PROTROL_TYEP.FTP]):
        last_slash = url.rfind('/')
        if (last_slash != (- 1)):
            title = url[(last_slash + 1):].strip()
    if (title.count('%') > 1):
        title = parse.unquote(title)
    return title
def getTitle(self, url):
    title = 'unnamed_file'
    bt_type = self.detectProtrolType(url)
    if (bt_type in [PROTROL_TYEP.HTTP, PROTROL_TYEP.FTP]):
        last_slash = url.rfind('/')
        if (last_slash != (- 1)):
            title = url[(last_slash + 1):].strip()
    if (title.count('%') > 1):
        title = parse.unquote(title)
    return title