diff --git a/couchpotato/core/downloaders/transmission.py b/couchpotato/core/downloaders/transmission.py
index 409efaa0..d6112a91 100644
--- a/couchpotato/core/downloaders/transmission.py
+++ b/couchpotato/core/downloaders/transmission.py
@@ -25,7 +25,7 @@ class Transmission(DownloaderBase):
def connect(self):
# Load host from config and split out port.
- host = cleanHost(self.conf('host'), protocol = False).split(':')
+ host = cleanHost(self.conf('host')).rstrip('/').rsplit(':', 1)
if not isInt(host[1]):
log.error('Config properties are not filled in correctly, port is missing.')
return False
@@ -162,11 +162,11 @@ class Transmission(DownloaderBase):
class TransmissionRPC(object):
"""TransmissionRPC lite library"""
- def __init__(self, host = 'localhost', port = 9091, rpc_url = 'transmission', username = None, password = None):
+ def __init__(self, host = 'http://localhost', port = 9091, rpc_url = 'transmission', username = None, password = None):
super(TransmissionRPC, self).__init__()
- self.url = 'http://' + host + ':' + str(port) + '/' + rpc_url + '/rpc'
+ self.url = host + ':' + str(port) + '/' + rpc_url + '/rpc'
self.tag = 0
self.session_id = 0
self.session = {}
@@ -274,8 +274,8 @@ config = [{
},
{
'name': 'host',
- 'default': 'localhost:9091',
- 'description': 'Hostname with port. Usually localhost:9091',
+ 'default': 'http://localhost:9091',
+ 'description': 'Hostname with port. Usually http://localhost:9091',
},
{
'name': 'rpc_url',