Skip to content

Latest commit

 

History

History
43 lines (35 loc) · 1.24 KB

from_task.md

File metadata and controls

43 lines (35 loc) · 1.24 KB
title description published date tags editor dateCreated
from_task
true
2022-09-18 05:12:22 UTC
markdown
2022-09-18 05:05:48 UTC

From Task

This plugin runs another task, and inputs any accepted entries from that task in this one. Any modifications made to the entries, or fields populated will be preserved.

This is especially useful when you need to filter, or make modifications to entries being provided to other plugins that accept inputs, e.g. discover, or configure_series

When another task is run via this plugin, the seen plugin will be disabled in that task, unless it is explicitly configured there.

It may be useful to configure the manual plugin on any task you only want to be run by from_task. This will prevent that task from being run on its own.

Example

tasks:
  main-task:
    discover:
      what:
        - from_task: my-custom-searches
      from:
        - search_rss: http://somewhere
  
  # Sub task to do some additional processing
  custom-searches:
    rss: http://someplace
    set:
      title: "{{title|replace('-', ' ')}}"
    regexp:
      reject:
        - badthing
    accept_all: yes
    manual: yes