Private GIT

Skip to content
Snippets Groups Projects
Commit 5dfff064 authored by Alexandre Beloin's avatar Alexandre Beloin
Browse files

Merge pull request #1282 from abeloin/patch-utorrent_token

Fix for uTorrent 2.2.1 token order.
parents a3fe42d8 0ae4384f
No related branches found
No related tags found
No related merge requests found
......@@ -32,8 +32,14 @@ class uTorrentAPI(GenericClient):
def _request(self, method='get', params={}, files=None):
params.update({'token': self.auth})
return super(uTorrentAPI, self)._request(method=method, params=params, files=files)
#Workaround for uTorrent 2.2.1
#Need a odict but only supported in 2.7+ and sickrage is 2.6+
ordered_params = {'token': self.auth}
for k,v in params.iteritems():
ordered_params.update({k: v})
return super(uTorrentAPI, self)._request(method=method, params=ordered_params, files=files)
def _get_auth(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment