return a valid version 2 filetree
This commit is contained in:
parent
e9a922f829
commit
af17346ac6
@ -150,6 +150,7 @@ class TorrentInfo(object):
|
||||
else:
|
||||
if filetree == 2:
|
||||
self.__m_files_tree = {
|
||||
"contents": {
|
||||
self.__m_name: {
|
||||
"type": "file",
|
||||
"index": 0,
|
||||
@ -157,6 +158,7 @@ class TorrentInfo(object):
|
||||
"download": True
|
||||
}
|
||||
}
|
||||
}
|
||||
else:
|
||||
self.__m_files_tree = {
|
||||
self.__m_name: (0, self.__m_metadata["info"]["length"], True)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user