mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-09 01:48:40 +00:00
return a valid version 2 filetree
This commit is contained in:
parent
e9a922f829
commit
af17346ac6
1 changed files with 7 additions and 5 deletions
|
@ -150,11 +150,13 @@ class TorrentInfo(object):
|
||||||
else:
|
else:
|
||||||
if filetree == 2:
|
if filetree == 2:
|
||||||
self.__m_files_tree = {
|
self.__m_files_tree = {
|
||||||
self.__m_name: {
|
"contents": {
|
||||||
"type": "file",
|
self.__m_name: {
|
||||||
"index": 0,
|
"type": "file",
|
||||||
"length": self.__m_metadata["info"]["length"],
|
"index": 0,
|
||||||
"download": True
|
"length": self.__m_metadata["info"]["length"],
|
||||||
|
"download": True
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue