flexget.components.managed_lists.lists.yaml_list module#

class flexget.components.managed_lists.lists.yaml_list.YamlList[source]#

Bases: object

get_list(config)[source]#
on_task_input(**kwargs)#
process_config(config)[source]#
Parameters:

config (dict)

Return type:

dict

schema = {'oneOf': [{'type': 'string'}, {'additionalProperties': False, 'properties': {'encoding': {'default': 'utf-8', 'type': 'string'}, 'fields': {'items': {'type': 'string'}, 'type': 'array'}, 'path': {'type': 'string'}}, 'required': ['path'], 'type': 'object'}]}#
class flexget.components.managed_lists.lists.yaml_list.YamlManagedList(path, fields, encoding)[source]#

Bases: MutableSet

Parameters:
add(item)[source]#

Add an element.

Parameters:

item (Entry)

Return type:

None

discard(item)[source]#

Remove an element. Do not raise an exception if absent.

Return type:

None

filter_keys(item)[source]#

Get items with limited keys.

Args:

item (dict): item to return

Returns:

dict: Item with limited keys

Parameters:

item (Mapping)

Return type:

dict

get(item)[source]#
Return type:

Entry | None

matches(entry1, entry2)[source]#
Return type:

bool

save_yaml()[source]#

Save yaml.

Raises:

PluginError: Error

_abc_impl = <_abc._abc_data object>#
property immutable#
property online#
flexget.components.managed_lists.lists.yaml_list.register_plugin()[source]#