diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-08-18 17:01:17 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-08-18 17:01:17 +0200 |
commit | 9a6ea22616cf3cc67e292c908521b79764400faf (patch) | |
tree | 1924843f28d992490d867d0557da90dfb1da6404 /pyload/threads/InfoThread.py | |
parent | fixed login (diff) | |
download | pyload-9a6ea22616cf3cc67e292c908521b79764400faf.tar.xz |
new linkgrabber
Diffstat (limited to 'pyload/threads/InfoThread.py')
-rw-r--r-- | pyload/threads/InfoThread.py | 14 |
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 = [] |