jellyfin-plugin-webhook
jellyfin-plugin-webhook copied to clipboard
[Bug] Incorrect Cyrillic letters display
Hi there! Have a problem with sending cyrillic overviews to Telegram This is example
\"caption\": \"Ім'я троянди (1986) був доданий на media.liashchuk.xyz\n1327 рік. У товаристві свого молодого учня Адсо чернець-францисканець Вільгельм Баскервільскій розслідує серію трагічних смертей ченців в бенедиктинському монастирі на півночі Італії. За всіма цими смертями криється страшна таємниця, і незабаром Вільгельм переконується, що ключ до розкриття загадки лежить у виявленні древнього пергаменту, який суворо охороняється та зберігається в таємній бібліотеці монастиря...\n\n<b>Тривалість</b>\n02:11:30\"
I have the same problem,
Probably related to #144 . Thank you!
have additional information
[2023-04-07 03:21:07.186 +03:00] [WRN] Notification failed with response status code BadRequest: "{\"ok\":false,\"error_code\":400,\"description\":\"Bad Request: message caption is too long\"}"
I'm having a similar issue with non-english characters being sent to ntfy. Seems to just effect the overview for me so I can't use it in my templates.
Doh. Think I've solved it by simply changing to a 'Triple-Stash' variable in my templates:
{{Overview}}
to {{{Overview}}}
Not familiar with handlebars but it looks like expressions are HTML-escaped by default which was causing the issue. If anyone else is encountering this then it's worth checking - the example templates use a mix of both formats - I had just been cut and pasting and didn't even notice the different syntax used for the overview.
https://github.com/jellyfin/jellyfin-plugin-webhook/issues/148#issuecomment-1727931307
{{Overview}}
to{{{Overview}}}
This method fixed it, thank you very much