nichobi / sponsorblockcast

A shell script that skips sponsored YouTube content on all local Chromecasts
GNU General Public License v3.0
348 stars 15 forks source link

Repeated skips #27

Open iMacThere4iAm opened 2 years ago

iMacThere4iAm commented 2 years ago

This is an intermittent bug where sponsorblockcast skips the same segment repeatedly. It does escape the loop eventually but it is quite annoying to watch. It looks like the while might be looping faster than go-chromecast watch is updating the current $progress? https://github.com/nichobi/sponsorblockcast/blob/e793986d7b20eddb1e42293a2b9f31ac78f2ec73/sponsorblockcast.sh#L72 https://github.com/nichobi/sponsorblockcast/blob/e793986d7b20eddb1e42293a2b9f31ac78f2ec73/sponsorblockcast.sh#L94-L99

Example log from journalctl -u sponsorblockcast

Aug 18 20:45:14 raspberrypi sponsorblockcast[3106]: Skipping sponsor from 636.546 -> 681.711 on 511a5060f9923bb98ed551585a4d81d7
Aug 18 20:45:15 raspberrypi sponsorblockcast[3148]: Skipping sponsor from 636.546 -> 681.711 on 511a5060f9923bb98ed551585a4d81d7
Aug 18 20:45:17 raspberrypi sponsorblockcast[3184]: Skipping sponsor from 636.546 -> 681.711 on 511a5060f9923bb98ed551585a4d81d7
Aug 18 20:45:18 raspberrypi sponsorblockcast[3225]: Skipping sponsor from 636.546 -> 681.711 on 511a5060f9923bb98ed551585a4d81d7

Running the latest version of the script, playing on "Chromecast with Google TV" (4th gen).

iMacThere4iAm commented 2 years ago

It's even stranger, go-chromecast watch does continue to update $progress in realtime, but the time returned by go-chromecast shows the video continuing to play through the sponsor segment even after it has in fact skipped. It might be a vishen/go-chromecast issue.