AnthonyMusgrove / Emby-ScripterX

Run custom external application or script (batch/bash/powershell/php/python/node.js/custom) on various events within the Emby Server.
https://emby-scripterx.com
78 stars 6 forks source link

Error is triggered when %var...% contains apostrophe #67

Open nickheyer opened 2 years ago

nickheyer commented 2 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Watch a movie with a " ' " in the title, ie: "Mr. Harrigan's Phone"
  2. Attempt to pass that as a command line argument to script
  3. It's never passed, it errors before it's delivered - see below: Error Emby ScripterX: onPlaybackStart: Error processing conditions for Action ID 32e3aa05-a5f0-4ab4-8654-f93dfe04ae8b: Line 1: Unexpected identifier
  4. Watch a title without " ' " in it, and see that things operate normally.

Expected behavior A clear and concise description of what you expected to happen. For the title to be passed to the script.

Additional context Add any other context about the problem here. I wrapped the %var...% in quotes, no difference.