Repository navigation
feat(fetcher/youtube): add youtube_channel - #220
Conversation
Public YouTube channel uploads via the per-channel Atom feed. No API
key, no OAuth. `Safety::Safe` — the host is hardcoded and each
`channel_id` is regex-validated to `^UC[A-Za-z0-9_-]{22}$` before it
reaches the URL, so config cannot inject path or query bytes that
escape youtube.com.
Multi-channel = parallel fetch via `tokio::JoinSet` + merge by
`published` desc. Per-channel failures fall through silently as long as
at least one channel succeeds; only all-fail surfaces an error, so a
misspelled ID or a YouTube outage is visible rather than masked by the
empty-body placeholder.
Adopts the glanceapp/glance pattern: `include_shorts = false`
(default) rewrites `UC...` → `UULF...` and queries
`?playlist_id=UULF...`, the channel's auto-generated long-form-uploads
playlist, which excludes Shorts. `include_shorts = true` falls back to
the raw `?channel_id=` feed.
The YouTube RSS endpoint is intermittently unreliable in 2026
(glanceapp/glance#910): ~95% uptime over the last 3 weeks per public
UptimeRobot data, with occasional bad days. The cached-fetcher model
absorbs most of that — splash opens hit the prior cache when the
background refresh fails.
Eight shapes via the shared `feed::*` pipeline, which gains five new
helpers (`Text`, `MarkdownTextBlock`, `Entries`, `Image`, `Timeline`).
`rss` and the `news_*` family widen their `SHAPES` lists in lockstep,
so all 93 news sources now expose the same eight shapes too.
Ticks the `youtube_channel` and `youtube_channels` boxes on #67 — the
two collapse into one fetcher since `channel_ids: Vec<String>` covers
both single- and multi-channel cases.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #220 +/- ##
==========================================
- Coverage 95.46% 95.28% -0.19%
==========================================
Files 159 160 +1
Lines 47253 47718 +465
==========================================
+ Hits 45111 45467 +356
- Misses 2142 2251 +109
🚀 New features to boost your workflow:
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughThis PR introduces a YouTube channel fetcher and expands the feed rendering pipeline to support multiple output shapes. The shared feed infrastructure now renders entries as Text, Entries, Timeline, or Image payloads; a new YouTube fetcher fetches and merges multi-channel Atom feeds with validation and failure tolerance; and existing news/RSS fetchers are extended to declare and produce these new shapes. ChangesYouTube fetcher and multi-shape feed rendering
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Ticks the `youtube_channel` and `youtube_channels` boxes on #67 — both collapse into one fetcher since `channel_ids: Vec` covers single- and multi-channel cases.
Catalog surface
Options
Compatible renderers
Test plan
Co-Authored-By: Claude Opus 4.7 (1M context) [email protected]
Summary by CodeRabbit