mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
Update utorrent.py
Adds high priority mode for recently aired show to utorrent using already existing tickbox under "search options\episode search".
This commit is contained in:
parent
dafff0281e
commit
6c84fed536
1 changed files with 7 additions and 1 deletions
|
@ -63,6 +63,12 @@ class uTorrentAPI(GenericClient):
|
|||
'v': sickbeard.TORRENT_LABEL
|
||||
}
|
||||
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):
|
||||
|
||||
|
@ -74,4 +80,4 @@ class uTorrentAPI(GenericClient):
|
|||
return self._request(params=params)
|
||||
|
||||
|
||||
api = uTorrentAPI()
|
||||
api = uTorrentAPI()
|
||||
|
|
Loading…
Reference in a new issue