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.
This commit is contained in:
JackDandy 2017-11-01 12:19:09 +00:00
parent 1bdab584c4
commit b8ddf97b11
2 changed files with 7 additions and 2 deletions

View file

@ -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

View file

@ -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):