Quantcast
Channel: configuration - Forum - FlexGet
Viewing all articles
Browse latest Browse all 716

How to configure an if filter

$
0
0

@rcnorth wrote:

I have the following task that is to send an email when a series doesn't have all the aired episodes after 10 days.

When I run the task it says that I need to setup a plugin to accept the results, but I thought that is what the if status is to do.

##########################################################################
# checks Trakt to see which episodes have aired but haven't been collected
########################################################################
  monitor_missing_episodes:
    disable: seen
    trakt_lookup: yes
    no_entries_ok: yes
    next_series_episodes: yes

    trakt_list:
      <<: *trakt-credentials
      list: 'Torrents'
      type: shows

    if:
    - trakt_ep_first_aired < now - timedelta(days=10): accept # Change the value in days to customize the time delta
    notify:
      task:
        title: "Missing episodes detected"
        template: html
        always_send: yes
        via:
        - email:
            <<: *gmail-settings

This is the results when the task is ran

2017-06-11 12:52 VERBOSE  verbose       monitor_missing_episodes Undecided entries have not been accepted or rejected. If you expected these to reach output, you must set up filter plugin(s) to accept them.
2017-06-11 12:52 INFO     performance                   Performance results for task monitor_missing_episodes:
2017-06-11 12:52 INFO     performance                   notify          took 2.24 sec (0 queries)
2017-06-11 12:52 INFO     performance                   retry_failed    took 0.10 sec (68 queries)
2017-06-11 12:52 INFO     performance                   if              took 0.18 sec (0 queries)
2017-06-11 12:52 INFO     performance                   trakt_list      took 0.60 sec (73 queries)

Posts: 6

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 716

Trending Articles