Skip to content

Commit

Permalink
Merge pull request #654 from tomtom602/patch-1
Browse files Browse the repository at this point in the history
better usage of furl for username and password
  • Loading branch information
theotherp authored Aug 18, 2017
2 parents 81789f5 + e7ec92e commit 0b7c99f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nzbhydra/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ def get_rpc(self, host=None, ssl=None, port=None, username=None, password=None):
f.scheme = "https" if ssl else "http"
f.port = port
if username is not None and password is not None:
f.path.add("%s:%s" % (username, password))
#f.path.add("%s:%s" % (username, password))
f.username = username
f.password = password
f.path.add("xmlrpc")

return xmlrpc.client.ServerProxy(f.tostr())
Expand Down Expand Up @@ -291,4 +293,4 @@ def getInstanceBySetting(setting):
return Nzbget(setting)
raise DownloaderNotFoundException("No downloader with type %s found" % setting.type)



0 comments on commit 0b7c99f

Please sign in to comment.