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
76 stars 6 forks source link

Could you add the event of Playback Error? #54

Open AAlexDing opened 2 years ago

AAlexDing commented 2 years ago

Is your feature request related to a problem? Please describe. Because the videos in my Emby are basically on the cloud drive, I added them to Emby by mounting, but the software to mount the cloud drive has been unstable for several months, and it often prompts "Playback Error: No compatible streams are currently available." I want to send me a message when an error occurs to let me restart the services.

Describe the solution you'd like Add the event of Playback Error

AnthonyMusgrove commented 2 years ago

Hi @AAlexDing, thank you for your feature request. I'll look into how this can be determined. It'd more then likely be a conditional check in the onPlaybackStopped event. I'm just looking into if theres a flag or some variable to determine the reason of why the PlaybackStopped event is triggered, and whether or not theres an 'Error in playback' flag somewhere there -- if so, we'll be able to include that flag as a variable so you can check for that variable onPlaybackStopped etc. Will update when time permits! Thanks again mate, Anthony

AAlexDing commented 2 years ago

Thank you,Anthony! I'm looking forward to your update.