po5 / mpv_sponsorblock

mpv script to skip sponsored segments of YouTube videos
GNU General Public License v3.0
549 stars 29 forks source link

Overlapping and close to each other segments #61

Open tomasklaen opened 2 years ago

tomasklaen commented 2 years ago

Example video: https://www.youtube.com/watch?v=Npu7jkJk5nM

There are 2 overlapping segments, one at the beginning, and one at the end. To illustrate:

[===A===]
       [===B===]

When playback arrives at the beginning of A, it skips to end of A instead of end of B.

When fixing this, please don't just detect overlaps, but also segments that are closer than let's say half a second to each other, and skip past that gap as well.

alopatindev commented 12 months ago

Looks like overlapping segments issues exist in original browser extension as well (1, 2, 3)

But could this specific issue reproduce due to ignored categories? For me these settings give (more) satisfying behavior for this video (it jumps to 1:25 after reaching 0:56)

# ~/.config/mpv/script-opts/sponsorblock.conf
skip_categories=sponsor,intro,outro,interaction,selfpromo,preview,music_offtopic,filler