fix tuple index error preventing qbittorrent login. Fixes #1300

This commit is contained in:
clinton-hall 2018-01-23 06:59:45 +13:00
commit 4fa0dc4572

View file

@ -829,7 +829,7 @@ def create_torrent_class(clientAgent):
if clientAgent == 'qbittorrent': if clientAgent == 'qbittorrent':
try: try:
logger.debug("Connecting to {0}: http://{1}:{2}".format(clientAgent, core.QBITTORRENTHOST, core.QBITTORRENTPORT)) logger.debug("Connecting to {0}: http://{1}:{2}".format(clientAgent, core.QBITTORRENTHOST, core.QBITTORRENTPORT))
tc = qBittorrentClient("http://{1}:{2}/".format(core.QBITTORRENTHOST, core.QBITTORRENTPORT)) tc = qBittorrentClient("http://{0}:{1}/".format(core.QBITTORRENTHOST, core.QBITTORRENTPORT))
tc.login(core.QBITTORRENTUSR, core.QBITTORRENTPWD) tc.login(core.QBITTORRENTUSR, core.QBITTORRENTPWD)
except: except:
logger.error("Failed to connect to qBittorrent") logger.error("Failed to connect to qBittorrent")