'Sends the magnet, url, or torrent file content to the client
params: :result: an instance of the searchResult class'

def sendTORRENT(self, result):

    r_code = False
    logger.log(u'Calling    {0}    Client'.format(self.name), logger.DEBUG)
    if (not (self.auth or self._get_auth())):
        logger.log(u'{0}:    Authentication    Failed'.format(self.name), logger.WARNING)
        return r_code
    try:
        result.ratio = result.provider.seed_ratio()
        result = self._get_torrent_hash(result)
        if result.url.startswith(u'magnet'):
            r_code = self._add_torrent_uri(result)
        else:
            r_code = self._add_torrent_file(result)
        if (not r_code):
            logger.log(u'{0}:    Unable    to    send    Torrent'.format(self.name), logger.WARNING)
            return False
        if (not self._set_torrent_pause(result)):
            logger.log(u'{0}:    Unable    to    set    the    pause    for    Torrent'.format(self.name), logger.ERROR)
        if (not self._set_torrent_label(result)):
            logger.log(u'{0}:    Unable    to    set    the    label    for    Torrent'.format(self.name), logger.ERROR)
        if (not self._set_torrent_ratio(result)):
            logger.log(u'{0}:    Unable    to    set    the    ratio    for    Torrent'.format(self.name), logger.ERROR)
        if (not self._set_torrent_seed_time(result)):
            logger.log(u'{0}:    Unable    to    set    the    seed    time    for    Torrent'.format(self.name), logger.ERROR)
        if (not self._set_torrent_path(result)):
            logger.log(u'{0}:    Unable    to    set    the    path    for    Torrent'.format(self.name), logger.ERROR)
        if ((result.priority != 0) and (not self._set_torrent_priority(result))):
            logger.log(u'{0}:    Unable    to    set    priority    for    Torrent'.format(self.name), logger.ERROR)
    except Exception as error:
        logger.log(u'{0}:    Failed    Sending    Torrent'.format(self.name), logger.ERROR)
        logger.log(u'{0}:    Exception    raised    when    sending    torrent:    {1}.    Error    {2}'.format(self.name, result, error), logger.DEBUG)
        return r_code
    return r_code
