From da454bd2f93cccafbd99536af8750a6997e30bb5 Mon Sep 17 00:00:00 2001 From: evilhero Date: Mon, 2 Jan 2017 20:38:52 -0500 Subject: [PATCH] FIX:(#1517) Deluge client would return 'no module named bencode' error upon checking hash --- mylar/torrent/clients/deluge.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mylar/torrent/clients/deluge.py b/mylar/torrent/clients/deluge.py index c8debe83..7e14266b 100644 --- a/mylar/torrent/clients/deluge.py +++ b/mylar/torrent/clients/deluge.py @@ -158,7 +158,8 @@ class TorrentClient(object): def get_the_hash(self, filepath): - import hashlib, StringIO, bencode + import hashlib, StringIO + from mylar import bencode # Open torrent file torrent_file = open(filepath, "rb")