diff --git a/headphones/utorrent.py b/headphones/utorrent.py index e11dc958..ce39020a 100644 --- a/headphones/utorrent.py +++ b/headphones/utorrent.py @@ -37,7 +37,7 @@ def addTorrent(link, title): password = headphones.UTORRENT_PASSWORD label = headphones.UTORRENT_LABEL token = '' - + logger.info("2") if not host.startswith('http'): host = 'http://' + host @@ -52,18 +52,22 @@ def addTorrent(link, title): # Retrieve session id auth = (username, password) if username and password else None token_request = request.request_response(host + 'token.html', auth=auth) + logger.info("3") token = re.findall('(.*?)