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

onLiveTVRecordingEnded event not triggering after recording stops #58

Closed chrishammond1969 closed 2 years ago

chrishammond1969 commented 2 years ago

Describe the bug I have been using the onLiveTVRecordingStart event for some time and this is working fine. I now have need of the onLiveTVRecordingEnded event. I have configured the script in the same as the onLiveTVRecordingStart using /bin/bash (using Synology DSM7). I can schedule a recording, but when the recording finishes, the stop event is not execute. The first line of my script is to add an entry in a logger file (absolute path). The logger is never created (or appended).

To Reproduce Steps to reproduce the behavior:

  1. Open the Scripter-X onLiveTVRecordingEnded event.
  2. Add an entry to point to a script for execution
  3. Select /bin/bash (in my case for Synology)
  4. Set a recording schedule for a programme in the Guide
  5. Wait for recording schedule to finish
  6. Check if the script was executed.

Expected behavior The onLiveTVRecordingEnded script is not executed

Desktop (please complete the following information):

chrishammond1969 commented 2 years ago

I have isolated the issue. I had edited the script on a Windows machine and copied to my Synology NAS. The copy did not convert the EOL to Unix style. I used Notepad++ to convert to Unix format and the script is now running.

Please accept my apologies if you had worked on any of this.