webUI api howto get a handle to a download

Other platforms, generic questions.
Post Reply
poleras

webUI api howto get a handle to a download

Post by poleras »

Hi everyone, I'm currently coding a program that interfaces qbittorrent through the webUI api. Thing is, for every command the api uses the torrent hash as a handle, which is logical, but requieres you to know the hash beforehand. When adding a new torrent from a magnet uri, it´s relatively easy to obtain the hash from it, but it´s very difficult to get it from a .torrent file. Is there anyway to identify a newly added torrent other than the hash?
Post Reply