From f3cd569e77de92d4f567eedc4b16c5197fbe0f62 Mon Sep 17 00:00:00 2001 From: jkaberg Date: Sun, 16 Mar 2014 22:15:37 +0100 Subject: [PATCH] fixed release_downloads, now properly returning data --- couchpotato/core/downloaders/qbittorrent_.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/couchpotato/core/downloaders/qbittorrent_.py b/couchpotato/core/downloaders/qbittorrent_.py index bd4154c3..61f8f8b2 100644 --- a/couchpotato/core/downloaders/qbittorrent_.py +++ b/couchpotato/core/downloaders/qbittorrent_.py @@ -68,12 +68,13 @@ class qBittorrent(Downloader): data['protocol'] = 'torrent' info = bdecode(filedata)["info"] - torrent_hash = sha1(bencode(info)).hexdigest().upper() + torrent_hash = sha1(bencode(info)).hexdigest() # Convert base 32 to hex if len(torrent_hash) == 32: torrent_hash = b16encode(b32decode(torrent_hash)) + print torrent_hash # Send request to qBittorrent try: self.qb.add_file(filedata) @@ -106,7 +107,7 @@ class qBittorrent(Downloader): for torrent in torrents: if torrent.hash in ids: - self.qb.update_general() # get extra info + torrent.update_general() # get extra info torrent_files = [] t_files = torrent.get_files()