'Checks the saved file to see if it was actually valid, if not then consider the download a failure.'

def _verify_download(self, file_name=None):

    if file_name.endswith(u'torrent'):
        try:
            with io.open(file_name, u'rb') as f:
                parser = guessParser(StringInputStream(f.read()))
                if (parser and (parser._getMimeType() == u'application/x-bittorrent')):
                    return True
        except Exception as e:
            sickrage.srCore.srLogger.debug(u'Failed    to    validate    torrent    file:    {}'.format(e.message))
        sickrage.srCore.srLogger.debug(u'Result    is    not    a    valid    torrent    file')
        return False
    return True
