@@ -0,0 +1,1002 @@
+import logging%0A%0Afrom flexget import plugin%0Afrom flexget.event import event%0A%0Alog = logging.getLogger('list_add')%0A%0A%0Aclass ListAdd(object):%0A    schema = %7B%0A        'type': 'array',%0A        'items': %7B%0A            'allOf': %5B%0A                %7B'$ref': '/schema/plugins?group=list'%7D,%0A                %7B%0A                    'maxProperties': 1,%0A                    'error_maxProperties': 'Plugin options within list_add plugin must be indented 2 more spaces than '%0A                                           'the first letter of the plugin name.',%0A                    'minProperties': 1%0A                %7D%0A            %5D%0A        %7D%0A    %7D%0A%0A    def on_task_output(self, task, config):%0A        for item in config:%0A            for plugin_name, plugin_config in item.iteritems():%0A                thelist = plugin.get_plugin_by_name(plugin_name).instance.get_list(plugin_config)%0A                thelist %7C= task.accepted%0A%0A%0A@event('plugin.register')%0Adef register_plugin():%0A    plugin.register(ListAdd, 'list_add', api_ver=2)%0A

Implement list_add plugin to act on plugins implementing list interface prototype