From fd459414aad8233aed58a928bcade482777972ee Mon Sep 17 00:00:00 2001 From: Ajay Date: Tue, 22 Jul 2025 02:08:23 -0400 Subject: [PATCH] Add video duration to skip rules --- src/utils/skipRule.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/utils/skipRule.ts b/src/utils/skipRule.ts index 50fa7da051..0ea0c06ea4 100644 --- a/src/utils/skipRule.ts +++ b/src/utils/skipRule.ts @@ -19,7 +19,8 @@ export enum SkipRuleAttribute { Description = "chapter.name", Source = "chapter.source", ChannelID = "channel.id", - ChannelName = "channel.name" + ChannelName = "channel.name", + VideoDuration = "video.duration" } export enum SkipRuleOperator { @@ -116,6 +117,8 @@ function getSkipRuleValue(segment: SponsorTime | VideoLabelsCacheData, rule: Adv case SkipRuleAttribute.ChannelName: getChannelIDInfo() return getChannelIDInfo().author; + case SkipRuleAttribute.VideoDuration: + return getVideoDuration(); default: return undefined; }