Updated rtorrent-python library
- Fixed bug with basic auth on secure connections - Added 'test_connection' method to RTorrent class - Minor adjustment to authorization encoding
This commit is contained in:
@@ -89,13 +89,16 @@ class RTorrent:
|
||||
|
||||
def _get_conn(self):
|
||||
"""Get ServerProxy instance"""
|
||||
if self.username is not None and self.password is not None:
|
||||
|
||||
if self.username and self.password:
|
||||
if self.scheme == 'scgi':
|
||||
raise NotImplementedError()
|
||||
|
||||
secure = self.scheme == 'https'
|
||||
|
||||
return self.sp(
|
||||
self.uri,
|
||||
transport=BasicAuthTransport(self.username, self.password),
|
||||
transport=BasicAuthTransport(secure, self.username, self.password),
|
||||
**self.sp_kwargs
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user