Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webhooks Sending Too Many Notifications #250

Open
Ahrimdon opened this issue May 25, 2024 · 1 comment
Open

Webhooks Sending Too Many Notifications #250

Ahrimdon opened this issue May 25, 2024 · 1 comment

Comments

@Ahrimdon
Copy link

Ahrimdon commented May 25, 2024

I am currently using the Discord webhook with the template below and it is working flawlessly, with the exception being there are multiple notifications appearing, instead of a single one. For example, when I click play, anywhere from 3-10 notifications are sent when there should have only been one.

I initially setup a generic webhook for a Telegram bot and had the same issue. Not sure if this is an issue with Discord or the plugin itself, but seeing that it happened for both Telegram and Discord, it's not a coincidence. I'm assuming this could also have something to do with running the server on Windows? I've been wanting to switch to Linux but keep getting errors using the Jellyfin Migrator

Jellyfin Server: 10.9.2 (Windows 10)
Webhook: 14.0.0.0

Template:

{
    "content": "{{MentionType}}",
    "avatar_url": "{{ServerUrl}}/Users/{{UserId}}/Images/Primary",
    "username": "{{BotUsername}}",
    "embeds": [
        {
            "author": {
                {{#if_equals ItemType 'Episode'}}
                    "name": "Playback Started • {{{SeriesName}}} S{{SeasonNumber00}}E{{EpisodeNumber00}} ~ {{{Name}}}",
                {{else}}
                    "name": "Playback Started • {{{Name}}} ({{Year}})",
                {{/if_equals}}

                "url": "{{ServerUrl}}/web/index.html#!/details?id={{ItemId}}&serverId={{ServerId}}"
            },
            
            "thumbnail":{
                "url": "{{ServerUrl}}/Items/{{ItemId}}/Images/Primary"
            },

            "description": "> {{{Overview}}}\n\n``[{{PlaybackPosition}}/{{RunTime}}]``",

            "color": "3394611",

            "footer": {
                "text": "{{{ServerName}}}",
                "icon_url": "{{AvatarUrl}}"
            },
            "fields": [
            {
              "name": "User",
              "value": "{{{NotificationUsername}}}",
              "inline": true
            }
            ],

            "timestamp": "{{Timestamp}}"
        }
    ]
}
@Ahrimdon Ahrimdon changed the title Discord Webhook Sending Too Many Notifications Webhooks Sending Too Many Notifications May 25, 2024
@DebXD
Copy link

DebXD commented Sep 20, 2024

I'm facing this too

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

No branches or pull requests

2 participants