Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/utils/skipRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
}
Expand Down