From 4fa0dc4572576c351ff3faa46cc223a38e0579ba Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Tue, 23 Jan 2018 06:59:45 +1300 Subject: [PATCH] fix tuple index error preventing qbittorrent login. Fixes #1300 --- core/nzbToMediaUtil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/nzbToMediaUtil.py b/core/nzbToMediaUtil.py index 0f06dfbe..b007e651 100644 --- a/core/nzbToMediaUtil.py +++ b/core/nzbToMediaUtil.py @@ -829,7 +829,7 @@ def create_torrent_class(clientAgent): if clientAgent == 'qbittorrent': try: 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) except: logger.error("Failed to connect to qBittorrent")