Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@antoinerime
Copy link
Contributor

Implemented feature requests:

  • Support Discord webhook for notify plugin
  • Feathub #53.

Implementation:

Config usage:

    notify:
      entries:
        message: "{{series_name}} - {{series_id }}"
        via:
          - discord:
              web_hook_url: "{? web_hook_url ?}
              avatar_url: "{? avatar_url ?}
              username: "Flexget"
              embeds:
                - title: "{{series_name}}"
                  description: "{{tvmaze_series_summary|default('Unknown')}}"
                  url: "{{tvmaze_series_url}}"
                  color: 0xe67e22
                  author:
                    name: "Flexget"
                    url: "https://flexget.com"
                    icon_url: "https://i.imgur.com/R66g1Pe.jpg"
                  fields:
                    - name: "Episode Name:"
                      value: "{{tvmaze_episode_name|default('Unknown')}}"
                      inline: True
                    - name: "Score"
                      value: "{{tvmaze_series_rating|default('Unknown')}}"
                      inline: True
                    - name: "Made in"
                      value: ":flag_jp:"
                  thumbnail:
                    url: "{{tvdb_ep_image|default('https://i.imgflip.com/j69nf.jpg')}}"
                  image:
                    url: "{{tvmaze_series_original_image}}"
                  footer:
                    text: "Such amaze, Much wow !"
                    icon_url: "{? icon_url ?}"

Discord output:

discord_hook

To Do:

  • Wiki

Copy link
Contributor

@cvium cvium left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple of minor issues. Looks good to me otherwise.

@liiight liiight merged commit b06f8b0 into Flexget:develop Dec 11, 2018
@liiight
Copy link
Member

liiight commented Dec 11, 2018

Thanks for this! Can you please update the wiki?

@antoinerime
Copy link
Contributor Author

Yes sure I can do that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants