mirror of
https://github.com/rembo10/headphones.git
synced 2026-03-21 12:19:27 +00:00
Fix for #1998
Moving "rpc" addition to transmission host string after exception
This commit is contained in:
@@ -143,12 +143,12 @@ def torrentAction(method, arguments):
|
||||
i = host.rfind(':')
|
||||
if i >= 0:
|
||||
possible_port = host[i + 1:]
|
||||
host = host + "/rpc"
|
||||
try:
|
||||
port = int(possible_port)
|
||||
if port:
|
||||
host = host + "/transmission/rpc"
|
||||
except ValueError:
|
||||
host = host + "/rpc"
|
||||
logger.debug('No port, assuming not transmission')
|
||||
else:
|
||||
logger.error('Transmission port missing')
|
||||
|
||||
Reference in New Issue
Block a user