summaryrefslogtreecommitdiffstats
path: root/pyload/interaction/InteractionManager.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-07-17 11:50:15 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-07-17 11:50:15 +0200
commita3dfd09a8d560f6e6591de2e1de95e82ed2ddce3 (patch)
treec3ebfd206a532a91300e69ac04c6229abf615ba5 /pyload/interaction/InteractionManager.py
parentfixed last commit (diff)
downloadpyload-a3dfd09a8d560f6e6591de2e1de95e82ed2ddce3.tar.xz
improved inputTypes, config api
Diffstat (limited to 'pyload/interaction/InteractionManager.py')
-rw-r--r--pyload/interaction/InteractionManager.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/pyload/interaction/InteractionManager.py b/pyload/interaction/InteractionManager.py
index 9c5449b31..36d457323 100644
--- a/pyload/interaction/InteractionManager.py
+++ b/pyload/interaction/InteractionManager.py
@@ -71,21 +71,21 @@ class InteractionManager:
:param plugin: plugin name
:return: :class:`InteractionTask`
"""
- task = InteractionTask(self.ids, IA.Notification, Input(InputType.Text, content), "", title, desc, plugin,
+ task = InteractionTask(self.ids, IA.Notification, Input(InputType.Text, None, content), title, desc, plugin,
owner=owner)
self.ids += 1
self.queueTask(task)
return task
@lock
- def createQueryTask(self, input, desc, default="", plugin="", owner=None):
+ def createQueryTask(self, input, desc, plugin="", owner=None):
# input type was given, create a input widget
if type(input) == int:
input = Input(input)
if not isinstance(input, Input):
raise TypeError("'Input' class expected not '%s'" % type(input))
- task = InteractionTask(self.ids, IA.Query, input, default, _("Query"), desc, plugin, owner=owner)
+ task = InteractionTask(self.ids, IA.Query, input, _("Query"), desc, plugin, owner=owner)
self.ids += 1
self.queueTask(task)
return task
@@ -104,11 +104,11 @@ class InteractionManager:
elif type == 'positional':
type = InputType.Click
- input = Input(type, [standard_b64encode(img), format, filename])
+ input = Input(type, data=[standard_b64encode(img), format, filename])
#todo: title desc plugin
task = InteractionTask(self.ids, IA.Captcha, input,
- None, _("Captcha request"), _("Please solve the captcha."), plugin, owner=owner)
+ _("Captcha request"), _("Please solve the captcha."), plugin, owner=owner)
self.ids += 1
self.queueTask(task)