Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error when torrent queueing is disabled on qBT #7541

Merged
merged 2 commits into from
Dec 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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