From b8ddf97b119e318019b5351c5871f743a5a2fcd9 Mon Sep 17 00:00:00 2001 From: JackDandy Date: Wed, 1 Nov 2017 12:19:09 +0000 Subject: [PATCH] Change qBittorent to handle the change to its API success/fail response. qB changed how it responds to API action from '' to 'Ok.' and 'Fails.', therefore breaking apps. --- CHANGES.md | 7 ++++++- sickbeard/clients/qbittorrent.py | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 50ad1111..21524e4b 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,9 @@ -### 0.12.35 (2017-10-27 20:30:00 UTC) +### 0.12.36 (2017-11-01 11:45:00 UTC) + +* Change qBittorent to handle the change to its API success/fail response + + +### 0.12.35 (2017-10-27 20:30:00 UTC) * Change and add some network logos diff --git a/sickbeard/clients/qbittorrent.py b/sickbeard/clients/qbittorrent.py index be155eaa..cdd483d7 100644 --- a/sickbeard/clients/qbittorrent.py +++ b/sickbeard/clients/qbittorrent.py @@ -39,7 +39,7 @@ class QbittorrentAPI(GenericClient): def _post_api(self, cmd='', **kwargs): - return '' == helpers.getURL('%scommand/%s' % (self.host, cmd), session=self.session, **kwargs) + return helpers.getURL('%scommand/%s' % (self.host, cmd), session=self.session, **kwargs) in ('', 'Ok.') def _add_torrent(self, cmd, **kwargs):