From 3baf12d3e40bf6939f2dbbc4c54f4ed539b6bc0d Mon Sep 17 00:00:00 2001 From: Ruud Date: Mon, 2 Sep 2013 14:54:54 +0200 Subject: [PATCH] Make sure cleanhost only has one trailing slash --- couchpotato/core/helpers/variable.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/couchpotato/core/helpers/variable.py b/couchpotato/core/helpers/variable.py index e6c9f84..9406a20 100644 --- a/couchpotato/core/helpers/variable.py +++ b/couchpotato/core/helpers/variable.py @@ -113,8 +113,8 @@ def cleanHost(host): if not host.startswith(('http://', 'https://')): host = 'http://' + host - if not host.endswith('/'): - host += '/' + host = host.rstrip('/') + host += '/' return host