Always Authenticate When Adding Torrents

- Avoid expired session cookies, just authenticate always
This commit is contained in:
Noam
2016-03-01 13:16:33 +02:00
parent a8476e89f4
commit aff82e4755

View File

@@ -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/']