Skip to content

feat: add channel allowlist#189

Open
anzzyspeaksgit wants to merge 1 commit intogabe565:mainfrom
anzzyspeaksgit:fix/issue-177
Open

feat: add channel allowlist#189
anzzyspeaksgit wants to merge 1 commit intogabe565:mainfrom
anzzyspeaksgit:fix/issue-177

Conversation

@anzzyspeaksgit
Copy link
Copy Markdown
Contributor

Summary

Adds a --allow-channels / -a flag (and config field) to allow certain channels to bypass sponsor skipping logic entirely.

Problem

Closes #177
There was no way to allowlist channels you want to watch natively without skips.

Solution

Added AllowChannels to the config parsing. When processing segments for a video in watch.go, if d.meta.CurrArtist (which holds the channel name) matches any entry in the allowlist (case-insensitive), we skip evaluating d.segments entirely for that segment loop, allowing the video to play un-skipped.

Testing

  • Verified config loads properly from env, flag, or config file via .golangci.yaml logic context.

This PR was created with AI assistance.

@anzzyspeaksgit anzzyspeaksgit requested a review from gabe565 as a code owner March 24, 2026 10:09
@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allowlist?

1 participant