-
Notifications
You must be signed in to change notification settings - Fork 278
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
qBittorrent API v2 #6505
Comments
Youll have to add a method that will get the api version first. Then then based on that you can switch between apis. |
Just submit your code. I'm sure it's going to be fine. We will help if needed. |
I uploaded my code here https://gist.github.com/andystevens91/3067a6241a3e6c29ba140dad74e1af50 |
In case this helps, my attempt at this from a year ago: While the authentication side of the code isn't finished, P.S. |
Your code is mostly working, though I got i fixed it in this way, which is surely the worst way to do that, but works for me:
|
Can you post the stack trace of that? Also I assume you use python3? |
Try just changing that line to: |
That works! |
It would be great to have a PR with these changes for the next version. |
Hi all, Any progress on this? qbittorrent 4.2.0 doesn't work with medusa right now
I tried both @sharkykh and @andystevens91 qbittorrent.py besides the default one present in medusa master branch. All return this error. qbittorrent API version is 2.2 |
I'll try to finish it this week |
Just FYI, qBittorrent version 4.2.0 is still in alpha, current (stable) version is 4.1.7 and it still fully supports the v1 API. |
Is your feature request related to a problem? Please describe.
Using the latest qBittorrent builds from the unstable repo, Medusa cannot download torrents. I think the old APIs are now deprecated.
Describe the solution you'd like
Upgrade the qBittorrent client to use API v2. I did it on my local qbittorrent.py file (just changed the _add_torrent_uri and _add_torrent_file methods), but I'm not confident enough to submit a PR.
The text was updated successfully, but these errors were encountered: