• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Help with my Telegram Webhook

     
    • 0 Vote(s) - 0 Average

    Help with my Telegram Webhook

    Jinxovarrio
    Offline

    Junior Member

    Posts: 13
    Threads: 4
    Joined: 2024 Apr
    Reputation: 0
    #1
    2024-05-27, 09:55 AM
    Hello everyone.

    For some reason in webhook if I remove the crossed out items the notifications to telegram stop being received.

    Can anyone tell me the reason?

    I want to avoid so many notifications of new chapters as it is excessive otherwise.

    "chat_id":"-100xxxxxxxxxxx ",
        {{#if_equals ItemType 'Series'}}
        "text": "<b><em>{{{Name}}} ({{Year}})</em></b>\n\n<code>Nueva serie añadida</code>\n\n<b>Sinopsis:</b> {{Overview}}\n\n<b>Duración</b>\n{{RunTime}}\n\nPara más información y trailer, <b>pulsa sobre la imagen</b>"
        {{else}}
      {{#if_equals ItemType 'Episode'}}
        "text": "<b>{{{SeriesName}}} ({{Year}})</b>\n\n<code>Nuevo episodio añadido</code>\n\n<b>Temporada:</b> {{SeasonNumber00}} <b>Episodio:</b> {{EpisodeNumber00}}\n\n<b>Sinopsis:</b> {{Overview}}\n\n<b>Duración:</b> {{RunTime}}\n\nPara más información y trailer, <b>pulsa sobre la imagen</b>"
      {{else}}
            {{#if_equals ItemType 'Movie'}}
      "text": "<b>{{{Name}}} ({{Year}})</b>\n\n<b>Sinopsis: </b>{{Overview}}\n\n<b>Duración:</b>{{RunTime}}\n\nPara más información y trailer, <b>pulsa sobre la imagen</b>"
      {{/if_equals}}
      {{/if_equals}}
        {{/if_equals}},
        "parse_mode": "html",
        "disable_notification":true,
        "link_preview_options": {
            "is_disabled": false,
            {{~#if_exist Provider_imdb~}}"url":"https://www.imdb.com/title/{{Provider_imdb}}/"
        {{else}}
        {{~#if_exist Provider_tmdb~}}
                    {{~#if_equals ItemType 'Movie'~}}
                        "url":"https://www.themoviedb.org/movie/{{Provider_tmdb}}/"
                    {{~else~}}
                        "url":"https://www.themoviedb.org/tv/{{Provider_tmdb}}"
                    {{~/if_equals~}}
                {{~/if_exist~}}
        {{~/if_exist~}},
            "prefer_large_media": true,
            "show_above_text": true
        }
    }

    Maybe I have to leave this selection like this?

       

    I used to have series, movies, episodes and season selected.

    Thank you very much
    crobibero
    Offline

    Core Team (Server & Plugins)

    Posts: 264
    Threads: 0
    Joined: 2023 Jun
    Reputation: 19
    Country:United States
    #2
    2024-05-27, 02:40 PM
    I believe you need to also remove an instance of {{/if_equals}} so the template can be closed properly
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode