❗ Bug / Support request: onLiveTVRecordingStart fires inconsistently in Scripter-X
❗ Bug / Support request:
onLiveTVRecordingStart
fires inconsistently in Scripter-X
Environment
| Item | Value |
|---|---|
| Server | Emby 4.8.11.0 (macOS 10.15.7) |
| Hardware | 2012 Mac mini (i7 2C/4T, 16 GB RAM) |
| Scripter-X | 3.3.6 (latest in catalog as of 2025-07-09) |
| Comskip | Donator 0.83.001 (installed in ~/bin) |
| Com Skipper plugin | 2.1.1 |
| Live-processing wrapper | /Users/arooni/bin/emby_preprocessing.sh (uses onLiveTVRecordingStart) |
What I’m trying to do
Post-processing commercial detection works 100 % (Emby “Recording Post Processing” runs /Users/arooni/bin/comskip --ini=… "{path}"). I’m adding real-time commercial detection with Scripter-X. Action: onLiveTVRecordingStart Script: /Users/arooni/bin/emby_preprocessing.sh Parameters: %recording.path% Interpreter: /bin/bash
Problem
onLiveTVRecordingStart sometimes fires, sometimes doesn’t.
✅ Example where it did fire (BBC feed):
2025-07-09 12:58:27 >>> Scripter-X FIRED with [/Volumes/FilesArooni/EmbyTV/Sportsday (2014)/Sportsday 2025_07_09_12_30_00 - 3.ts]
❌ Example where it did not fire (CNN & Fox News): Started watching Live TV, then hit Record. No entry in sx_probe.txt. No invocation of my preprocessing script. I have to uninstall / reinstall Scripter-X before it fires again.
Once the event fails for a channel it seems “stuck” until the plugin is re-installed.
Repro steps (reliable)
Start Live TV on CNN HD. Let it play ~10 s. Hit Record This Episode. Watch sx_probe.txt (simple probe script prints its args): nothing. Repeat with BBC World → fires as expected.
What I tried
Verified Scripter-X action list ✔︎ Simplified wrapper to bare-bones probe that just echoes args ✔︎ Confirmed %recording.path% works when event fires ✔︎ Server restart → no change Plugin reinstall → event fires once then goes intermittent again
Relevant logs
# ~/.config/emby-server/logs/sx_probe.txt
2025-07-09 12:58:27 >>> Scripter-X FIRED with [/Volumes/FilesArooni/EmbyTV/Sportsday (2014)/Sportsday 2025_07_09_12_30_00 - 3.ts]
2025-07-09 13:02:39 >>> Scripter-X FIRED with [/Volumes/FilesArooni/EmbyTV/Sportsday (2014)/Sportsday 2025_07_09_12_30_00 - 3.ts]
# (nothing for CNN or Fox attempts)
Full embyserver.txt snippet around a missing fire is attached in the ZIP (contains playback HLS requests but no Scripter-X lines).
Expected
onLiveTVRecordingStart should fire every time a recording begins—regardless of channel or whether I started from Live playback.
Actual
Fires for some channels, not for others (CNN/Fox). Post-processing trigger (onRecordingEnded, via “Recording Post Processing”) is always reliable.
Things I’d love help with
Is there a known issue with onLiveTVRecordingStart on macOS or certain tuners/streams? Any extra logging flags I can enable to diagnose why Scripter-X skips the event? Would a channel name with spaces/special chars break %recording.path% resolution? Happy to supply full debug logs or do test builds.
Thanks for looking—really want to get real-time Comskip working for live news!
Feel free to tweak wording or trim sections before posting. Let me know if you need additional log excerpts.