Fix existing chapters opening skip notice when chapters disabled

This commit is contained in:
Ajay
2022-07-03 18:33:32 -04:00
parent d0497d60e8
commit 7badfd9b32

View File

@@ -1569,6 +1569,7 @@ function shouldAutoSkip(segment: SponsorTime): boolean {
function shouldSkip(segment: SponsorTime): boolean {
return (segment.actionType !== ActionType.Full
&& segment.source !== SponsorSourceType.YouTube
&& utils.getCategorySelection(segment.category)?.option !== CategorySkipOption.ShowOverlay)
|| (Config.config.autoSkipOnMusicVideos && sponsorTimes?.some((s) => s.category === "music_offtopic"));
}