Add YouTube channel extraction and display support#338
Merged
JesperDramsch merged 7 commits intomainfrom Apr 18, 2026
Merged
Conversation
…ce link YouTube URLs with /@channel patterns were incorrectly matched as Mastodon profiles. This fixes the extractor to properly identify YouTube links and adds YouTube as a first-class conference field for enrichment and display. - Fix extract_links_from_url to detect YouTube before generic /@username - Add youtube field to Conference schema, validation, and data model - Add YouTube display on conference detail pages - Add tests for YouTube extraction and Mastodon disambiguation https://claude.ai/code/session_0154a8RdG7M2nj83zPWVodgZ
Bluesky and YouTube data was being tracked but never shown to users. Add display links to conference detail pages, summary pages, and the index listing row using Font Awesome brand icons. https://claude.ai/code/session_0154a8RdG7M2nj83zPWVodgZ
for more information, see https://pre-commit.ci
CodeQL flagged the substring checks ("youtube.com" in domain) as
incomplete URL sanitization — a host like evil-youtube.com.attacker
could match. Replace with a _domain_matches helper that accepts an
exact host or a proper subdomain, and reuse it for Twitter/X.
Also collapses the line Ruff E501 on the combined Twitter/YouTube
skip condition into a readable form.
https://claude.ai/code/session_0154a8RdG7M2nj83zPWVodgZ
pyupgrade v3.15.2 crashes on Python 3.14 with a TypeError from tokenize.cookie_re — it passes a str where newer CPython expects a bytes pattern. pre-commit.ci runs on Python 3.14, so the hook was failing on every PR regardless of the diff. Bumping to v3.21.2 picks up the upstream fix. https://claude.ai/code/session_0154a8RdG7M2nj83zPWVodgZ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds support for extracting and displaying YouTube channel links from conference websites, alongside existing social media integrations (Mastodon, Bluesky).
Key Changes
extract_links_from_url()function, supporting bothyoutube.com/@channelandyoutu.beshort links/@usernameURL pattern, preventing misclassificationyoutubefield to the Conference data model with HttpUrl validationconference.html,summary.html) and index rows (index_conf_title_row.html)Implementation Details
youtube.comandyoutu.bedomainsfa-brands fa-youtube) for consistent UI stylinghttps://claude.ai/code/session_0154a8RdG7M2nj83zPWVodgZ