diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-07-18 00:06:18 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-07-18 00:06:18 +0200 |
commit | 5c1fb051fcbc7842bb4f6e879684cda9d7a14cdb (patch) | |
tree | 44fccf0954de54947397bfac76633d9f0e6c48a6 /module/PluginThread.py | |
parent | improvements, command line link checker (diff) | |
download | pyload-5c1fb051fcbc7842bb4f6e879684cda9d7a14cdb.tar.xz |
closed #364, changes to online check api
Diffstat (limited to 'module/PluginThread.py')
-rw-r--r-- | module/PluginThread.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/module/PluginThread.py b/module/PluginThread.py index 5492f3ec4..a036b4878 100644 --- a/module/PluginThread.py +++ b/module/PluginThread.py @@ -455,12 +455,9 @@ class InfoThread(PluginThread): else: #generate default result - tmp = [(url, (url, OnlineStatus(url, pluginname, 3, 0))) for url in urls] - result = parseNames(tmp) - for k in result.iterkeys(): - result[k] = dict(result[k]) + result = [(url, 0, 3, url) for url in urls] - self.m.setInfoResults(self.rid, result) + self.updateResult(pluginname, result, True) self.m.infoResults[self.rid]["ALL_INFO_FETCHED"] = {} @@ -478,12 +475,15 @@ class InfoThread(PluginThread): if len(self.cache) >= 20 or force: #used for package generating - tmp = [(name, (url, OnlineStatus(name, plugin, status, int(size)))) + tmp = [(name, (url, OnlineStatus(name, plugin, "unknown", status, int(size)))) for name, size, status, url in self.cache] - result = parseNames(tmp) - for k in result.iterkeys(): - result[k] = dict(result[k]) + 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) |