-
Notifications
You must be signed in to change notification settings - Fork 66
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
Return Torrent hash or TorrentDictionary
from Client.torrents.add()
and Support Additional Actions when Adding a Torrent
#74
Comments
Hello @unsocial-bleach, However, as in #29, it cannot be guaranteed this client can reliably determine which torrent will be added to qBittorrent when Although, given enough information in a specific example, it would normally be trivial to determine the actual torrent; it's just difficult to generalize to any possible case. I'm definitely open to ideas I may be overlooking. I think ideally the qBittorrent team would implement qbittorrent/qBittorrent#4879 so that their Alternatively, thinking out loud, it'd probably be technically possible for this client to request a corresponding torrent hash from users for each torrent to be added by As you've stated, though, it should be fairly straightforward at least to write a small wrapper for this client to add the torrent and set additional options such as super seeding....albeit with at least two more API calls... |
All reasonable points! I guess for now, we'll wait on qbittorrent/qBittorrent#4879. |
TorrentDictionary
from Client.torrents.add()
and Support Additional Actions when Adding a Torrent
One can create a temporary category, assign it to the torrents during the initial temp_cat = "..."
qbt_client.torrents_add(urls=magnet_urls, category=temp_cat)
hashes = [ torrent_info.hash for torrent_info in qbt_client.torrents_info(category=temp_cat) ]
qbt_client.torrent_categories.remove_categories(categories=temp_cat) I'd further suggest randomly generating the category and or ensuring it is unique (e.g. compare with There's likely a better method of retrieving hashes from added torrents, but I figured I'd leave this here in case it helps anyone. |
I want to enable super seeding at the time that I add a torrent via an additional parameter to
qbt_client.torrents_add(urls='...')
, likeqbt_client.torrents_add(urls='...', enable_super_seeding=True)
.I don't want to have to lookup the torrent hash, and make a separate request to enable super seeding. Using
qbt_client.set_super_seeding(...)
is less convenient.I understand that this may mean straying from implementing the existing API calls exactly, but I think that the UX benefit of this Python library will make it worth it.
The text was updated successfully, but these errors were encountered: