jellyfin / jellyfin-plugin-webhook

GNU General Public License v3.0
148 stars 48 forks source link

Please provide a helper that supports changing to escape as \ n in the template #217

Open goodmangll opened 9 months ago

goodmangll commented 9 months ago

Due to some variables having line breaks, the final result does not conform to a JSON. Please take a look at the example below.

my template

image

final result

截图_选择区域_20240222142459

seanmcbroom commented 5 months ago

Could it be because the overview is html escaped? https://handlebarsjs.com/guide/#html-escaping

Bpendragon commented 4 days ago

I'm also running into this issue, the description/overview that the webhook is trying to send is malformed and Discord throws an error. This causes items to be missed and notifications never sent (or at least not sent in a way that is visible on discord)