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

List_clear - Run at end of task

$
0
0

@jbaddock wrote:

Hi, I've managed to get email notifications working with the new plugin design. Emails out the list of new entries once a day. However, after the email, the list is not cleared, the entries are appended to the old. The list is getting long now :). I tried list_clear, but I think the plugin is running before the email is sent and clearing the list. Do you have any suggestions?
I tried setting the plugin_priority, not sure if -255 is an acceptable value or if I implemented it properly, wanted it to run at the end.

  Email-Report-TV:
    template:
      - no_global
      - tv-info
    thetvdb_lookup: yes
    disable:
      - seen
    plugin_priority:
      list_clear: -255
    no_entries_ok: yes
    entry_list: TV Daily
    accept_all: yes
    notify:
      task:
        via:
          - email:
              from: '{? gmail.emailfrom ?}'
              to:
                - '{? gmail.emailto ?}'
              smtp_host: smtp.gmail.com
              smtp_port: 587
              smtp_username: '{? gmail.emailfrom ?}'
              smtp_password: '{? gmail.password ?}'
              smtp_tls: yes
              html: yes
        template: html-custom.template
    list_clear:
      what:
        - entry_list: TV Daily

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 716

Trending Articles