fix when there is only 1 file
This commit is contained in:
parent
7f1dadf3cd
commit
387ea4a911
|
@ -149,7 +149,14 @@ class TorrentInfo(object):
|
|||
self.__m_files_tree = file_tree.get_tree()
|
||||
else:
|
||||
if filetree == 2:
|
||||
pass
|
||||
self.__m_files_tree = {
|
||||
self.__m_name: {
|
||||
"type": "file",
|
||||
"index": 0,
|
||||
"length": self.__m_metadata["info"]["length"],
|
||||
"download": True
|
||||
}
|
||||
}
|
||||
else:
|
||||
self.__m_files_tree = {
|
||||
self.__m_name: (0, self.__m_metadata["info"]["length"], True)
|
||||
|
|
Loading…
Reference in New Issue