'Save the result to disk.'

def downloadResult(self, result):

    if (not self._doLogin):
        return False
    urls = self.make_url(result.url)
    filename = self.make_filename(result.name)
    for url in urls:
        if (u'NO_DOWNLOAD_NAME' in url):
            continue
        sickrage.srCore.srLogger.info((((u'Downloading    a    result    from    ' + self.name) + u'    at    ') + url))
        if (url.endswith(u'torrent') and filename.endswith(u'nzb')):
            filename = ((filename.rsplit(u'.', 1)[0] + u'.') + u'torrent')
        if sickrage.srCore.srWebSession.download(url, filename, headers=(None, {u'Referer': (u'/'.join(url.split(u'/')[:3]) + u'/')})[url.startswith(u'http')]):
            if self._verify_download(filename):
                sickrage.srCore.srLogger.info((u'Saved    result    to    ' + filename))
                return True
            else:
                sickrage.srCore.srLogger.warning((u'Could    not    download    %s' % url))
                remove_file_failed(filename)
    if len(urls):
        sickrage.srCore.srLogger.warning(u'Failed    to    download    any    results')
    return False
