mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 12:04:10 +00:00
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…
x
Reference in New Issue
Block a user