Medusa
Medusa copied to clipboard
Fix error added by qbittorrent 5.0 pymedusa/Medusa#11844
- [x] PR is based on the DEVELOP branch
- [x] Don't send big changes all at once. Split up big PRs into multiple smaller PRs that are easier to manage and review
- [x] Read the contribution guide
Proposed fixes for error(s) from https://github.com/pymedusa/Medusa/issues/11844 caused by qbittorrent 5.0 api changes, which for reasons unknown to mortal man is that they changed "pause/paused" to "stop/stopped", and "resume/resumed" to "start".
Things addressed/fixed:
-
Download handler is unable to process completed & "stopped" torrents (completed & uploading/seeding worked fine), which affects people who don't seed or if the download handlers schedule is slower than seeding goal is hit.
-
Log-level error spawned from not being able to parse this new unknown "stopped" state.
Also tested: qQbittorrent v4.6.7, to ensure new changes to accommodate qQbittorrent v5.0+ does not negatively affect previous version(s)