From 4e7069e0c6068e4c99ccb30a40eb0fb473558f14 Mon Sep 17 00:00:00 2001 From: Ruud Date: Mon, 13 Oct 2014 13:20:21 +0200 Subject: [PATCH] Deluge, allow "no port" fix #4055 --- couchpotato/core/downloaders/deluge.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/couchpotato/core/downloaders/deluge.py b/couchpotato/core/downloaders/deluge.py index 0c49233d..1230cd6e 100644 --- a/couchpotato/core/downloaders/deluge.py +++ b/couchpotato/core/downloaders/deluge.py @@ -27,6 +27,11 @@ class Deluge(DownloaderBase): def connect(self, reconnect = False): # Load host from config and split out port. host = cleanHost(self.conf('host'), protocol = False).split(':') + + # Force host assignment + if len(host) == 1: + host.append(80) + if not isInt(host[1]): log.error('Config properties are not filled in correctly, port is missing.') return False