Fix missing _metainfo attribute in TorrentInfo
This commit is contained in:
parent
277576268c
commit
23171ad205
|
@ -196,6 +196,7 @@ class TorrentInfo(object):
|
|||
# Get the torrent metainfo from the torrent file
|
||||
if metadata:
|
||||
self._metainfo_dict = {'info': bencode.bdecode(metadata)}
|
||||
self._metainfo = bencode.bencode(self._metainfo_dict)
|
||||
else:
|
||||
self._metainfo = metainfo
|
||||
if filename and not self._metainfo:
|
||||
|
|
Loading…
Reference in New Issue