Google has forced(*) a cookie consenting page when a request is sent to https://www.youtube.com/watch?v=### without a consent cookie. So the current method of getting video meta data no longer works.

The response is a 303 code "See Other" with redirection to https://consent.youtube.com/m.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jcisio created an issue. See original summary.

jcisio’s picture

Issue summary: View changes
jcisio’s picture

Category: Task » Bug report
Issue summary: View changes

We could use NoEmbed (https://noembed.com/embed?url=https://www.youtube.com/watch?v=###) but we don't have much info. Maybe just force to use the API key now?

jcisio’s picture

OK I think we can simply change the url to https://www.youtube.com/oembed?url=https://www.youtube.com/watch?v=### and let the tags/width/height go...

jcisio’s picture

Status: Active » Needs review
FileSize
628 bytes

By playing around, it turns out that the GDPR blocking screen is displayed only when the User-Agent is sent.

jcisio’s picture

Title: It no longer works without YouTube API » It no longer works without YouTube API key

  • jcisio committed b08f87c on 7.x-1.x
    Issue #3207767 by jcisio: It no longer works without YouTube API key
    
jcisio’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

bwaindwain’s picture

Some of our users were reporting "Invalid YouTube video identifier." when trying to create youtube video atoms. Turns out it only affected sites on our non-US servers. This patch fixes it.

Thanks @jcisio