Flexget icon indicating copy to clipboard operation
Flexget copied to clipboard

Notify support for Bark

Open RyoLee opened this issue 3 years ago • 0 comments

Motivation for changes:

Push notification to Bark client

Detailed changes:

  • Add a new notifier

Addressed issues:

  • N/A

Implemented feature requests:

  • N/A

Config usage if relevant (new plugin or updated schema):

notify:
  entries:
    what: rejected  #only for test
    title: |
          {{task}}
    message: |
          {% if series_name is defined %}{{series_name}}{% if series_id is defined %} - {{series_id}}{% endif %}{% if trakt_ep_name is defined %} - {{trakt_ep_name}}{% endif %}
          {% elif imdb_name is defined%}{{movie_name}}
          {% else %}{{title}}
          {% endif %}
    via:
      - bark:
          server:  https://******
          device_key: ******

Log and/or tests output (preferably both):

flexget

2022-07-31 18:48:38 VERBOSE  details       MadeinAbyss     Produced 3 entries.
2022-07-31 18:48:38 VERBOSE  task          MadeinAbyss     REJECTED: `[桜都字幕组] 来自深渊 烈日的黄金乡 / Made in Abyss: Retsujitsu no Ougonkyou [03][1080p][简繁内封]` by seen plugin because entry with title `[桜都字幕组] 来自深渊 烈日的黄金乡 / Made in Abyss: Retsujitsu no Ougonkyou [03][1080p][简繁内封]` is already marked seen in the task MadeinAbyss at 2022-07-31 18:29
2022-07-31 18:48:38 VERBOSE  task          MadeinAbyss     REJECTED: `[桜都字幕组] 来自深渊 烈日的黄金乡 / Made in Abyss: Retsujitsu no Ougonkyou [02][1080p][简繁内封]` by seen plugin because entry with title `[桜都字幕组] 来自深渊 烈日的黄金乡 / Made in Abyss: Retsujitsu no Ougonkyou [02][1080p][简繁内封]` is already marked seen in the task MadeinAbyss at 2022-07-31 18:29
2022-07-31 18:48:38 VERBOSE  task          MadeinAbyss     REJECTED: `[桜都字幕组] 来自深渊 烈日的黄金乡 / Made in Abyss: Retsujitsu no Ougonkyou [01][1080p][简繁内封]` by seen plugin because entry with title `[桜都字幕组] 来自深渊 烈日的黄金乡 / Made in Abyss: Retsujitsu no Ougonkyou [01][1080p][简繁内封]` is already marked seen in the task MadeinAbyss at 2022-07-31 18:29
2022-07-31 18:48:38 VERBOSE  details       MadeinAbyss     Summary - Accepted: 0 (Rejected: 3 Undecided: 0 Failed: 0)
2022-07-31 18:48:38 INFO     aria2         MadeinAbyss     Connecting to daemon at https://******
2022-07-31 18:48:39 VERBOSE  notify        MadeinAbyss     Successfully sent a notification to `bark`
2022-07-31 18:48:39 VERBOSE  notify        MadeinAbyss     Successfully sent a notification to `bark`
2022-07-31 18:48:39 VERBOSE  notify        MadeinAbyss     Successfully sent a notification to `bark`
2022-07-31 18:48:40 INFO     manager                       Removed test database

bark

2022-07-31 18:48:38     INFO    10.42.0.1 -> [200] POST   232ms /push => /push {"title": "MadeinAbyss", "body": "[\u685c\u90fd\u5b57\u5e55\u7ec4] \u6765\u81ea\u6df1\u6e0a \u70c8\u65e5\u7684\u9ec4\u91d1\u4e61 / Made in Abyss\uff1a Retsujitsu no Ougonkyou [03][1080p][\u7b80\u7e41\u5185\u5c01]\n", "device_key": "******"}
2022-07-31 18:48:39     INFO    10.42.0.1 -> [200] POST   233ms /push => /push {"title": "MadeinAbyss", "body": "[\u685c\u90fd\u5b57\u5e55\u7ec4] \u6765\u81ea\u6df1\u6e0a \u70c8\u65e5\u7684\u9ec4\u91d1\u4e61 / Made in Abyss\uff1a Retsujitsu no Ougonkyou [02][1080p][\u7b80\u7e41\u5185\u5c01]\n", "device_key": "******"}
2022-07-31 18:48:39     INFO    10.42.0.1 -> [200] POST   232ms /push => /push {"title": "MadeinAbyss", "body": "[\u685c\u90fd\u5b57\u5e55\u7ec4] \u6765\u81ea\u6df1\u6e0a \u70c8\u65e5\u7684\u9ec4\u91d1\u4e61 / Made in Abyss\uff1a Retsujitsu no Ougonkyou [01][1080p][\u7b80\u7e41\u5185\u5c01]\n", "device_key": "******"}

client IMG_3587

To Do:

  • N/A

RyoLee avatar Jul 31 '22 11:07 RyoLee