From aff82e47554f6c63247fa29f33341adc9bfa6d8d Mon Sep 17 00:00:00 2001 From: Noam Date: Tue, 1 Mar 2016 13:16:33 +0200 Subject: [PATCH] Always Authenticate When Adding Torrents - Avoid expired session cookies, just authenticate always --- headphones/deluge.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/headphones/deluge.py b/headphones/deluge.py index e79482e2..1e4ddf19 100644 --- a/headphones/deluge.py +++ b/headphones/deluge.py @@ -72,6 +72,10 @@ def _scrubber(text): def addTorrent(link, data=None): try: + # Authenticate anyway + logger.debug('Deluge: addTorrent Authentication') + _get_auth() + result = {} retid = False special_treatment_sites = ['https://what.cd/', 'http://what.cd/']