Hi, as im writing a small script too add all my existing recordings to TVH im on the last hurdle ...
i have plenty episodes with the character ' in its name, and it seems i cant escape it on the api call.
i already regex it in the subtitle cause i dont really need it, but its also in the filename ... wich makes it break.
sample output from my script wich causes a fail ... She's ...
curl --data 'conf={"start":"1570132761","stop":"1570136361","channelname":"Sky 1 HD","title":{"ger":"The Outpost"},"files":[{"filename":"/Media/TVRIPS/The Outpost/Season 02/The Outpost - S02E06 - Because She's Worth It.mkv"}],"episode":{"enum":"6","snum":"2"},"subtitle":{"ger":"Because She s Worth It mkv"} }' 'http://user:pass@192.168.1.2:9981/api/dvr/entry/create'
i already tested --data-urlencode, tried to escape with \, \ with "", etc etc .. always same result ...
i could now add a routine to first also regex in filepath, add to tvheadend (with wrong path), then use a /api/dvr/entry/filemoved where the ... She's ... is then accepted ... would be the dirty way then ;)
may a hint howto use this character in the api call for /create ?
for any tipps, thanks ahead.