From af17346ac672926a0ff36f40c5284ba647cc0e5a Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Wed, 31 Mar 2010 20:34:52 +0100 Subject: [PATCH] return a valid version 2 filetree --- deluge/ui/common.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/deluge/ui/common.py b/deluge/ui/common.py index 42f46a14e..e8c6e0266 100644 --- a/deluge/ui/common.py +++ b/deluge/ui/common.py @@ -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: