return a valid version 2 filetree

This commit is contained in:
Damien Churchill 2010-03-31 20:34:52 +01:00
parent e9a922f829
commit af17346ac6

View File

@ -150,11 +150,13 @@ class TorrentInfo(object):
else:
if filetree == 2:
self.__m_files_tree = {
self.__m_name: {
"type": "file",
"index": 0,
"length": self.__m_metadata["info"]["length"],
"download": True
"contents": {
self.__m_name: {
"type": "file",
"index": 0,
"length": self.__m_metadata["info"]["length"],
"download": True
}
}
}
else: