blacktwin / JBOPS

Just a Bunch Of Plex Scripts
1.64k stars 305 forks source link

Scripts do not work for Chromecast #393

Open bromanguydude opened 11 months ago

bromanguydude commented 11 months ago

Describe the bug

It looks like Chromecast is able to just bypass having the script run as the playing of the video originates from another device and then casts to the TV.

Provide logs

No logs needed as the script works as it should on the local device, but then does not recognize the remote stream.

Link to script with bug/issue

To Reproduce

Cast a video from PC or phone to a TV or cast ready device and the script will only run on the player that started the stream.

Expected behavior

My thought to solve this is may be using the time watched action, and write a script that will check on streams that are already running once they hit say 30 seconds or 60 seconds and run it then, instead of when the video playback starts in order to catch chromecasts.

blacktwin commented 11 months ago

Which script?

bromanguydude commented 10 months ago

--jbop time --username {username} --sessionId {session_id} --duration {duration} --days 7 --limit hours=7 --killMessage

Looks like since it creates a session ID on the local device, then casts the content with a separate stream ID, the second one does not run the script and is able to bypass any limiterr scripts,

blacktwin commented 6 months ago

Can you share your logs?