mirror of
https://github.com/evilhero/mylar
synced 2024-12-24 08:42:37 +00:00
FIX:(#1517) Deluge client would return 'no module named bencode' error upon checking hash
This commit is contained in:
parent
49508e4944
commit
da454bd2f9
1 changed files with 2 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue