Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for youtube-nocookie.com domain in YoutubeEmbed plugin #99

Merged

Conversation

devAbreu
Copy link
Contributor

Description

This pull request adds support for handling YouTube iframes using the youtube-nocookie.com domain in the YoutubeEmbed plugin.

Changes Made

  • Updated the regular expression in iframe_youtube.go to include youtube-nocookie.com.
  • Added debug messages for easier verification.

Justification

youtube-nocookie.com is a variant of YouTube that is used to enhance user privacy by not storing cookies. These changes will allow the plugin to correctly handle these iframes.

Thank you for considering this improvement.

Copy link

codecov bot commented May 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.11%. Comparing base (2ec2259) to head (69ed8b8).

Current head 69ed8b8 differs from pull request most recent head 0faed87

Please upload reports for the commit 0faed87 to get more accurate results.

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #99   +/-   ##
=======================================
  Coverage   97.11%   97.11%           
=======================================
  Files           4        4           
  Lines         971      971           
=======================================
  Hits          943      943           
  Misses         19       19           
  Partials        9        9           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@JohannesKaufmann
Copy link
Owner

@devAbreu thanks a lot for submitting the PR! This sounds like a good improvement 👍

Just one thing: Please remove the logging for now.

(Logging should be customizable, maybe only when a debug mode is activated. Or when a logger is passed in. Since we don't have that yet, I would leave this out for now...)

@devAbreu
Copy link
Contributor Author

@JohannesKaufmann Great. Thank you for the suggestion. 👍🏿

@JohannesKaufmann JohannesKaufmann merged commit e92a7a3 into JohannesKaufmann:master May 24, 2024
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