Skip to content

Add support for Youtube meta tags with itemprop attributes - #122

Merged
mworrell merged 2 commits into
masterfrom
yt-meta-itemprop
Jun 30, 2026
Merged

mworrell merged 2 commits into
masterfrom
yt-meta-itemprop

Conversation

@mworrell

@mworrell mworrell commented Jun 30, 2026

Copy link
Copy Markdown
Member

This pull request improves the extraction and handling of HTML metadata, specifically by adding support for the itemprop attribute in <meta> tags. This allows the system to better parse and map structured metadata, such as those used by YouTube and other platforms that leverage schema.org properties. Additionally, new tests are included to ensure the correct extraction of these properties.

Enhancements to HTML metadata extraction:

  • Added support for parsing the itemprop attribute in <meta> tags, enabling extraction of structured metadata fields such as name, description, and thumbnailUrl.
  • Introduced the meta_itemprop_tag/3 function to handle mapping of specific itemprop values (name to title, thumbnailUrl to thumbnail) and fallback for other values.

Testing improvements:

  • Added a new test (youtube_itemprop_html_meta_test) to verify correct extraction of YouTube-style itemprop metadata, including title, description, and thumbnail URL.

Copilot AI review requested due to automatic review settings June 30, 2026 18:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@mworrell
mworrell merged commit 5c3dca2 into master Jun 30, 2026
3 checks passed
@mworrell
mworrell deleted the yt-meta-itemprop branch June 30, 2026 18:31
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.

2 participants