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
Failure when adding already existing torrents to qBittorrent #2701
Comments
I suspect this is an issue on qBittorrent's end because if I try to do this manually through the qBittorrent API, it also fails when a torrent already exists. A workaround I've discovered is commenting out the download portion of qbittorrent.py and forcing it to add to qbittorrent by URL instead. The RSS feed I am using has direct download links.
If an additional option would be added to let qBittorrent download the torrent instead of FlexGet then adding it by file then this would be easier to handle. The other way would be to use the qBittorrent API prior to adding the torrents and remove entries that already exist. |
If we can reliably detect that the error was from adding a torrent that already exists, I think it's fine if we just catch and log that the torrent already exists. If not, perhaps we should go the route of pre-checking whether the torrent already exists. Adding by URL is okay most of the time, but not in cases where flexget is managing cookies or other kinds of logins. |
This issue has been mentioned on Forum - FlexGet. There might be relevant details there: https://discuss.flexget.com/t/rss-still-showing-all-entries-with-all-entires-no/5251/1 |
Same issue here. Flexget aborts my task and shows
I dumped the network traffic between flexget and qb, the crash happens when add-new-torrent api Maybe check HTTP200 instead of check |
The same problem appeared, does anyone know how to solve it,thanks |
Hmm. I just had a peek at the qbittorrent source, and there is no way via the api to tell the difference if there was a failure adding, or if the torrent was already there. I see 2 ways forward:
|
[fix] qbittorrent: handle existing torrent. fix #2701
Expected behaviour:
Skip already added torrents
Actual behaviour:
Entire task errors when attempting to add torrents to qBittorrent
Steps to reproduce:
Config:
Log:
(click to expand)
Additional information:
The text was updated successfully, but these errors were encountered: