mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
Merge branch 'pulls/72'
This commit is contained in:
commit
10babc4d34
@ -63,6 +63,12 @@ class uTorrentAPI(GenericClient):
|
|||||||
'v': sickbeard.TORRENT_LABEL
|
'v': sickbeard.TORRENT_LABEL
|
||||||
}
|
}
|
||||||
return self._request(params=params)
|
return self._request(params=params)
|
||||||
|
|
||||||
|
def _set_torrent_priority(self, result):
|
||||||
|
|
||||||
|
if result.priority == 1:
|
||||||
|
params = {'action': 'queuetop', 'hash': result.hash}
|
||||||
|
return self._request(params=params)
|
||||||
|
|
||||||
def _set_torrent_pause(self, result):
|
def _set_torrent_pause(self, result):
|
||||||
|
|
||||||
@ -74,4 +80,4 @@ class uTorrentAPI(GenericClient):
|
|||||||
return self._request(params=params)
|
return self._request(params=params)
|
||||||
|
|
||||||
|
|
||||||
api = uTorrentAPI()
|
api = uTorrentAPI()
|
||||||
|
Loading…
Reference in New Issue
Block a user