mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
Fix missing _metainfo attribute in TorrentInfo
This commit is contained in:
parent
277576268c
commit
23171ad205
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue