Fix missing _metainfo attribute in TorrentInfo

This commit is contained in:
Calum Lind 2018-06-20 15:37:19 +01:00
parent 277576268c
commit 23171ad205
1 changed files with 1 additions and 0 deletions

View File

@ -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: