summaryrefslogtreecommitdiffstats
path: root/pyload/manager/thread/Info.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/manager/thread/Info.py')
-rw-r--r--pyload/manager/thread/Info.py6
1 files changed, 6 insertions, 0 deletions
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