@Anaerin wrote:
I'm trying to use the discord notify option, but it's reporting a 400 error in the log when attempting to access the webhook.
The relevant configuration part looks like this:notify: task: template: html via: - email: ### Snipped for brevity entries: via: - discord: web_hook_url: https://discordapp.com/api/webhooks/numbers/letters avatar_url: https://avatars2.githubusercontent.com/u/17483320?s=400&v=4 username: "Flexget" embeds: - title: "{{ series_name }}" #Line 32 description: "{{tvdb_ep_overview|default('Unknown')}}" url: "{{tvdb_url|default('Unknown')}}" color: 0xe67e22 author: name: "Flexget" url: "https://flexget.com" icon_url: "https://i.imgur.com/R66g1Pe.jpg" fields: - name: "Episode Name:" #line 41 value: "{{tvdb_ep_name|default('Unknown')}}" inline: True - name: "Score" #line 44 value: "{{tvdb_rating|default('Unknown')}}" inline: True - name: "Network" #line 47 value: "{{tvdb_network|default('Unknown')}}" thumbnail: url: "{{tvdb_ep_image|default('https://i.imgflip.com/j69nf.jpg')}}" image: url: "{{tvdb_posters}}"
The code is copied from the example in the notify plugin documentation and modified slightly so it doesn't rely on tvmaze.
Running flexget check on the configuration gives the following:2019-04-08 00:19 WARNING check Config line 32 is likely missing ':' at the end 2019-04-08 00:19 WARNING check Config line 41 is likely missing ':' at the end 2019-04-08 00:19 WARNING check Config line 44 is likely missing ':' at the end 2019-04-08 00:19 WARNING check Config line 47 is likely missing ':' at the end 2019-04-08 00:19 VERBOSE check Pre-checked 379 configuration lines 2019-04-08 00:19 VERBOSE check Checking config file `/home/anaerin/.flexget/config.yml` 2019-04-08 00:19 VERBOSE check Config passed check.
*The noted lines are commented in the snippet above.
Any idea what's going wrong, and should the documentation be fixed if it's not correct? I have literally copied and pasted from the example.
Posts: 1
Participants: 1