Skip to content

Commit

Permalink
Fix error when torrent queueing is disabled on qBT (#7541)
Browse files Browse the repository at this point in the history
* Fix error when torrent queueing is disabled on qBT

* Update CHANGELOG.md
  • Loading branch information
sharkykh authored and p0psicles committed Dec 30, 2019
1 parent 102486d commit bdd18d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- Fix Schedule page and Forced Search on Schedule page ([#7512](https://github.com/pymedusa/Medusa/pull/7512))
- Fix manual search page release name bug ([#7517](https://github.com/pymedusa/Medusa/pull/7517))
- Fix being unable to save post-processing config ([#7526](https://github.com/pymedusa/Medusa/pull/7526))
- Fix qBittorrent error when torrent queueing is disabled ([#7541](https://github.com/pymedusa/Medusa/pull/7541))

-----

Expand Down
2 changes: 1 addition & 1 deletion medusa/clients/torrent/qbittorrent.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def _set_torrent_priority(self, result):
}
ok = self._request(method='post', data=data, cookies=self.session.cookies)

if self.response.status_code == 403:
if self.response.status_code == (409 if self.api >= (2, 0, 0) else 403):
log.info('{name}: Unable to set torrent priority because torrent queueing'
' is disabled in {name} settings.', {'name': self.name})
ok = True
Expand Down

0 comments on commit bdd18d4

Please sign in to comment.