summaryrefslogtreecommitdiffstats
path: root/pyload/threads/InfoThread.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-08-18 17:01:17 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-08-18 17:01:17 +0200
commit9a6ea22616cf3cc67e292c908521b79764400faf (patch)
tree1924843f28d992490d867d0557da90dfb1da6404 /pyload/threads/InfoThread.py
parentfixed login (diff)
downloadpyload-9a6ea22616cf3cc67e292c908521b79764400faf.tar.xz
new linkgrabber
Diffstat (limited to 'pyload/threads/InfoThread.py')
-rw-r--r--pyload/threads/InfoThread.py14
1 files changed, 4 insertions, 10 deletions
diff --git a/pyload/threads/InfoThread.py b/pyload/threads/InfoThread.py
index fba2a9056..6e685cdcf 100644
--- a/pyload/threads/InfoThread.py
+++ b/pyload/threads/InfoThread.py
@@ -4,7 +4,7 @@
from time import time
from traceback import print_exc
-from pyload.Api import LinkStatus
+from pyload.Api import LinkStatus, DownloadStatus
from pyload.utils.packagetools import parseNames
from pyload.utils import has_method, accumulate
@@ -100,17 +100,11 @@ class InfoThread(BaseThread):
if len(self.cache) >= 20 or force:
#used for package generating
- tmp = [(name, (url, LinkStatus(name, plugin, "unknown", status, int(size))))
- for name, size, status, url in self.cache]
+ tmp = [(name, LinkStatus(url, name, plugin, int(size), status))
+ for name, size, status, url in self.cache]
data = parseNames(tmp)
- result = {}
- for k, v in data.iteritems():
- for url, status in v:
- status.packagename = k
- result[url] = status
-
- self.m.setInfoResults(self.rid, result)
+ self.m.setInfoResults(self.rid, data)
self.cache = []