fix hash lookup in qbittorrent. Fixes #1300

This commit is contained in:
clinton-hall 2018-01-22 23:07:48 +13:00
commit d67ed51104

View file

@ -909,7 +909,7 @@ def find_download(clientAgent, download_id):
if clientAgent == 'qbittorrent':
torrents = core.TORRENT_CLASS.torrents()
for torrent in torrents:
if torrent['infohash'] == download_id:
if torrent['hash'] == download_id:
return True
if clientAgent == 'sabnzbd':
if "http" in core.SABNZBDHOST: