From e00ef98491f79ae8aa972ae1473dae4a7b78c07e Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Mon, 13 Apr 2015 17:20:59 +0200 Subject: Cleanup --- pyload/manager/thread/Info.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pyload/manager/thread/Info.py') diff --git a/pyload/manager/thread/Info.py b/pyload/manager/thread/Info.py index edc9489e9..487c3b924 100644 --- a/pyload/manager/thread/Info.py +++ b/pyload/manager/thread/Info.py @@ -36,6 +36,7 @@ class InfoThread(PluginThread): self.start() + def run(self): """run method""" @@ -120,9 +121,11 @@ class InfoThread(PluginThread): self.m.timestamp = time() + 5 * 60 + def updateDB(self, plugin, result): self.m.core.files.updateFileInfo(result, self.pid) + def updateResult(self, plugin, result, force=False): # parse package name and generate result # accumulate results @@ -144,9 +147,11 @@ class InfoThread(PluginThread): self.cache = [] + def updateCache(self, plugin, result): self.cache.extend(result) + def fetchForPlugin(self, pluginname, plugin, urls, cb, err=None): try: result = [] # result loaded from cache @@ -184,6 +189,7 @@ class InfoThread(PluginThread): result = [(url, 0, 3, url) for url in urls] cb(pluginname, result) + def decryptContainer(self, plugin, url): data = [] # only works on container plugins -- cgit v1.2.3