'Sends a Torrent file or NZB file to DownloadStation
params: :result: an object subclassing sickbeard.classes.SearchResult'

def _add_torrent_file(self, result):

    data = self._task_post_data
    if (result.resultType == u'torrent'):
        files = {u'file': ((result.name + u'.torrent'), result.content)}
        if sickbeard.TORRENT_PATH:
            data[u'destination'] = sickbeard.TORRENT_PATH
    else:
        files = {u'file': ((result.name + u'.nzb'), result.extraInfo[0])}
        if sickbeard.SYNOLOGY_DSM_PATH:
            data[u'destination'] = sickbeard.SYNOLOGY_DSM_PATH
    self._request(method=u'post', data=data, files=files)
    return self._check_response(data, files)
