'Sets the desired seed ratio for an existing torrent in the client
params: :result: an instance of the searchResult class'

def _set_torrent_ratio(self, result):

    if (result.ratio in (None, u'')):
        return True
    params = {u'action': u'setprops', u'hash': result.hash, u's': u'seed_override', u'v': u'1'}
    if (not self._request(params=params)):
        return False
    params = {u'action': u'setprops', u'hash': result.hash, u's': u'seed_ratio', u'v': (float(result.ratio) * 10)}
    return self._request(params=params)
