From e4382c23a3681e5df8d323c6d48019fe1beb0c23 Mon Sep 17 00:00:00 2001 From: rembo10 Date: Wed, 30 Apr 2014 22:38:20 -0700 Subject: [PATCH] fixin some bugs --- headphones/utorrent.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/headphones/utorrent.py b/headphones/utorrent.py index a1509a04..97fe1219 100644 --- a/headphones/utorrent.py +++ b/headphones/utorrent.py @@ -45,7 +45,7 @@ def addTorrent(link): return False print response - + if response['result'] == 'success': if 'torrent-added' in response['arguments']: name = response['arguments']['torrent-added']['name'] @@ -104,8 +104,8 @@ def torrentAction(method=None, params=None, files=None): # Retrieve session id auth = (username, password) if username and password else None - token_request = request.request_response(host + 'token.html') - token = re.findall('(.*?)(.*?)