From 6c84fed53674344f8e1220adee58b4a898b017ad Mon Sep 17 00:00:00 2001 From: sammy2142 Date: Fri, 25 Apr 2014 10:34:24 +0100 Subject: [PATCH] Update utorrent.py Adds high priority mode for recently aired show to utorrent using already existing tickbox under "search options\episode search". --- sickbeard/clients/utorrent.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sickbeard/clients/utorrent.py b/sickbeard/clients/utorrent.py index 9127671a..321de455 100644 --- a/sickbeard/clients/utorrent.py +++ b/sickbeard/clients/utorrent.py @@ -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() \ No newline at end of file +api = uTorrentAPI()