From 6388d97c5cde693706391c3e18da7466bf313069 Mon Sep 17 00:00:00 2001 From: mano3m Date: Sat, 18 Jan 2014 12:39:59 +0100 Subject: [PATCH] Store username and pass in cleanhost Fixes #2727 --- couchpotato/core/helpers/variable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/helpers/variable.py b/couchpotato/core/helpers/variable.py index 0cfaa57..658ea8c 100644 --- a/couchpotato/core/helpers/variable.py +++ b/couchpotato/core/helpers/variable.py @@ -129,7 +129,7 @@ def cleanHost(host, protocol = True, ssl = False, username = None, password = No if protocol and username and password: login = '%s:%s@' % (username, password) if not login in host: - host.replace('://', '://' + login, 1) + host = host.replace('://', '://' + login, 1) host = host.rstrip('/ ') if protocol: