fix when there is only 1 file

This commit is contained in:
Damien Churchill 2010-03-31 17:42:46 +01:00
parent 7f1dadf3cd
commit 387ea4a911
1 changed files with 8 additions and 1 deletions

View File

@ -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)