From a9e43f95f51dbf7f3517a0cb6956397fbe2b622f Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Sun, 22 Aug 2021 19:03:24 -0400 Subject: [PATCH] Fix highlight auto skipping on music videos --- src/content.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 {