diff options
author | Ajay Ramachandran <[email protected]> | 2021-08-22 19:03:24 -0400 |
---|---|---|
committer | Ajay Ramachandran <[email protected]> | 2021-08-22 19:03:24 -0400 |
commit | a9e43f95f51dbf7f3517a0cb6956397fbe2b622f (patch) | |
tree | 8c8e16c5c6ed5558490c7802dd8997c06d9866aa | |
parent | 11fe87a09e048da1f0e94c176186e002ca246fc7 (diff) | |
download | SponsorBlock-a9e43f95f51dbf7f3517a0cb6956397fbe2b622f.tar.gz SponsorBlock-a9e43f95f51dbf7f3517a0cb6956397fbe2b622f.zip |
Fix highlight auto skipping on music videos
-rw-r--r-- | src/content.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/content.ts b/src/content.ts index 1bbe04a6..aef49c24 100644 --- a/src/content.ts +++ b/src/content.ts @@ -1189,7 +1189,8 @@ function createButton(baseID: string, title: string, callback: () => void, image function shouldAutoSkip(segment: SponsorTime): boolean { return utils.getCategorySelection(segment.category)?.option === CategorySkipOption.AutoSkip || - (Config.config.autoSkipOnMusicVideos && sponsorTimes.some((s) => s.category === "music_offtopic")); + (Config.config.autoSkipOnMusicVideos && sponsorTimes.some((s) => s.category === "music_offtopic") + && getCategoryActionType(segment.category) === CategoryActionType.Skippable); } function shouldSkip(segment: SponsorTime): boolean { |