iSponsorBlockTV icon indicating copy to clipboard operation
iSponsorBlockTV copied to clipboard

SponsorBlock skips the segment but gets stuck in a loop, and keeps skipping and playing the part of the video

Open wild-a opened this issue 1 year ago • 6 comments

Before opening an issue make sure that there are no duplicates and that you are on the latest version. Describe the bug SponsorBlock skips the segment but gets stuck in a loop, and keeps skipping and playing the part of the video

To Reproduce Steps to reproduce the behavior:

  1. Go to the YouTube app
  2. Play this video https://youtu.be/Cpl373FOntY
  3. Wait for error.

Expected behavior I would expect it to skip the segment and not get stuck in a loop

iSponsorBlockTV server (please complete the following information):

  • OS: Raspbian
  • Running on Docker

Apple TV (please complete the following information):

  • Device: AppleTV 4K
  • OS: tvOS 18.1

Additional context Log from Portainer: 2024-11-18 23:51:20,066 - iSponsorBlockTV-tuhgq2ppgmpkive0lbgevh92fp - INFO - Playing video Cpl373FOntY with 1 segments 2024-11-18 23:56:23,173 - iSponsorBlockTV-tuhgq2ppgmpkive0lbgevh92fp - INFO - Subscribe completed, status 200 OK 2024-11-18 23:56:23,245 - iSponsorBlockTV-tuhgq2ppgmpkive0lbgevh92fp - INFO - Connected to device YouTube on TV (YouTube on TV) 2024-11-18 23:56:23,246 - iSponsorBlockTV-tuhgq2ppgmpkive0lbgevh92fp - INFO - Subscribing to lounge 2024-11-18 23:56:23,856 - iSponsorBlockTV-tuhgq2ppgmpkive0lbgevh92fp - INFO - Playing video Cpl373FOntY with 1 segments 2024-11-18 23:57:42,018 - iSponsorBlockTV-tuhgq2ppgmpkive0lbgevh92fp - INFO - Skipping segment: seeking to 493.814 2024-11-18 23:57:42,906 - iSponsorBlockTV-tuhgq2ppgmpkive0lbgevh92fp - INFO - Playing video Cpl373FOntY with 1 segments 2024-11-18 23:57:43,620 - iSponsorBlockTV-tuhgq2ppgmpkive0lbgevh92fp - INFO - Skipping segment: seeking to 493.814 2024-11-18 23:57:45,128 - iSponsorBlockTV-tuhgq2ppgmpkive0lbgevh92fp - INFO - Skipping segment: seeking to 493.814 2024-11-18 23:57:44,481 - iSponsorBlockTV-tuhgq2ppgmpkive0lbgevh92fp - INFO - Playing video Cpl373FOntY with 1 segments 2024-11-18 23:57:45,960 - iSponsorBlockTV-tuhgq2ppgmpkive0lbgevh92fp - INFO - Playing video Cpl373FOntY with 1 segments 2024-11-18 23:57:46,612 - iSponsorBlockTV-tuhgq2ppgmpkive0lbgevh92fp - INFO - Skipping segment: seeking to 493.814 2024-11-18 23:57:47,623 - iSponsorBlockTV-tuhgq2ppgmpkive0lbgevh92fp - INFO - Playing video Cpl373FOntY with 1 segments 2024-11-18 23:57:49,111 - iSponsorBlockTV-tuhgq2ppgmpkive0lbgevh92fp - INFO - Playing video Cpl373FOntY with 1 segments 2024-11-18 23:57:48,281 - iSponsorBlockTV-tuhgq2ppgmpkive0lbgevh92fp - INFO - Skipping segment: seeking to 493.814

wild-a avatar Nov 19 '24 00:11 wild-a

Confirming the same experience with similar entries on identical hardware and software, but different video.

2024-12-02 04:29:53,348 - iSponsorBlockTV-o4275umu71q6mu13ejjaoponcm - INFO - Playing video oNmR2YZO2gw with 1 segments
2024-12-02 04:29:54,001 - iSponsorBlockTV-o4275umu71q6mu13ejjaoponcm - INFO - Skipping segment: seeking to 405.847
2024-12-02 04:29:55,472 - iSponsorBlockTV-o4275umu71q6mu13ejjaoponcm - INFO - Playing video oNmR2YZO2gw with 1 segments
2024-12-02 04:29:56,134 - iSponsorBlockTV-o4275umu71q6mu13ejjaoponcm - INFO - Skipping segment: seeking to 405.847

rekonnected avatar Dec 02 '24 04:12 rekonnected

Thanks for opening an issue, it seems like YouTube has rolled back a change they did a while ago that allowed to skip more precisely, down to the millisecond. Now it only allows second precision, which can cause these sorts of loops. Maybe implementing a minimum skip time could fix this issue

dmunozv04 avatar Dec 03 '24 09:12 dmunozv04

This could be related to #145

dmunozv04 avatar Dec 03 '24 09:12 dmunozv04

+1, I get this issue occasionally, especially when there's a short segment at the very start of a video (start time of the segment is 0:00). I think that the lack of precise time-setting in the client is part of the issue, I think that adding something like a half second or rounding up the end segment timestamp (maybe both) would probably help?

ryankupk avatar Dec 20 '24 00:12 ryankupk

Any update on implementing a fix?

wild-a avatar Dec 30 '24 04:12 wild-a

Fast forwarding about 10 seconds seems to get the video out of the loop, but yeah it is definitely an issue. Works perfect otherwise.

nol166 avatar Dec 31 '24 15:12 nol166

Any update on implementing a fix?

I haven't had the time to look into it

dmunozv04 avatar Feb 22 '25 18:02 dmunozv04

I think I've found a solution for the loops at the start of videos (will update with a PR soon)

dmunozv04 avatar Mar 09 '25 19:03 dmunozv04

Should be fixed now on the latest version

dmunozv04 avatar May 19 '25 14:05 dmunozv04