From 2a96311d6f6c650c8e5419eeccccf56473b21281 Mon Sep 17 00:00:00 2001 From: Clinton Hall Date: Fri, 24 Jan 2020 23:05:16 +1300 Subject: [PATCH] Qbittorrent patch 1 (#1711) qBittorrenHost to qBittorrentHost (#1710) Co-authored-by: boredazfcuk --- autoProcessMedia.cfg.spec | 2 +- core/configuration.py | 3 +++ core/plugins/downloaders/torrent/configuration.py | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/autoProcessMedia.cfg.spec b/autoProcessMedia.cfg.spec index b2623e53..a189b1c3 100644 --- a/autoProcessMedia.cfg.spec +++ b/autoProcessMedia.cfg.spec @@ -382,7 +382,7 @@ DelugeUSR = your username DelugePWD = your password ###### qBittorrent (You must edit this if you're using TorrentToMedia.py with qBittorrent) - qBittorrenHost = localhost + qBittorrentHost = localhost qBittorrentPort = 8080 qBittorrentUSR = your username qBittorrentPWD = your password diff --git a/core/configuration.py b/core/configuration.py index 13dc8f72..134c05d5 100644 --- a/core/configuration.py +++ b/core/configuration.py @@ -191,6 +191,9 @@ class ConfigObj(configobj.ConfigObj, Section): if option == 'forceClean': CFG_NEW['General']['force_clean'] = value values.pop(option) + if option == 'qBittorrenHost': #We had a typo that is now fixed. + CFG_NEW['Torrent']['qBittorrentHost'] = value + values.pop(option) if section in ['Transcoder']: if option in ['niceness']: CFG_NEW['Posix'][option] = value diff --git a/core/plugins/downloaders/torrent/configuration.py b/core/plugins/downloaders/torrent/configuration.py index e89c883f..8acd4b61 100644 --- a/core/plugins/downloaders/torrent/configuration.py +++ b/core/plugins/downloaders/torrent/configuration.py @@ -85,7 +85,7 @@ def configure_deluge(config): def configure_qbittorrent(config): - core.QBITTORRENT_HOST = config['qBittorrenHost'] # localhost + core.QBITTORRENT_HOST = config['qBittorrentHost'] # localhost core.QBITTORRENT_PORT = int(config['qBittorrentPort']) # 8080 core.QBITTORRENT_USER = config['qBittorrentUSR'] # mysecretusr core.QBITTORRENT_PASSWORD = config['qBittorrentPWD'] # mysecretpwr