mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-05 16:08:40 +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
|
# Get the torrent metainfo from the torrent file
|
||||||
if metadata:
|
if metadata:
|
||||||
self._metainfo_dict = {'info': bencode.bdecode(metadata)}
|
self._metainfo_dict = {'info': bencode.bdecode(metadata)}
|
||||||
|
self._metainfo = bencode.bencode(self._metainfo_dict)
|
||||||
else:
|
else:
|
||||||
self._metainfo = metainfo
|
self._metainfo = metainfo
|
||||||
if filename and not self._metainfo:
|
if filename and not self._metainfo:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue