Browse Source

Merge pull request #2732 from mano3m/develop_fixhost

Store username and pass in cleanhost
pull/2741/head
Ruud Burger 11 years ago
parent
commit
3c03e400f0
  1. 2
      couchpotato/core/helpers/variable.py

2
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:

Loading…
Cancel
Save