prevent 409 error in Transmission RPC. Fixes #245

This commit is contained in:
clinton-hall 2014-01-30 07:29:16 +10:30
commit b87f067cd2

View file

@ -138,7 +138,7 @@ class Client(object):
urlo = urlparse(address)
if urlo.scheme == '':
base_url = 'http://' + address + ':' + str(port)
self.url = base_url + '/transmission/rpc'
self.url = base_url + '/transmission/rpc/'
else:
if urlo.port:
self.url = urlo.scheme + '://' + urlo.hostname + ':' + str(urlo.port) + urlo.path