Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#14377 closed defect (bug) (invalid)

Some YouTube videos are not processed by oEmbed

Reported by: honzaskypala's profile honza.skypala Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0
Component: Embeds Keywords: oEmbed
Focuses: Cc:


While majority of YouTube videos for oEmbed work fine (i.e. I just enter the URL on a separate line into blog post and I get an embedded video as a result), it does not work in some cases. For example:

When I enter this URL into blog post (valid URL for YouTube video), in the displayed post I have the URL, not the embedded video.

Change History (3)

#1 follow-up: @scribu
13 years ago

Maybe that particular video has embeding disabled?

#2 in reply to: ↑ 1 @honza.skypala
13 years ago

Replying to scribu:

Maybe that particular video has embeding disabled?

No, that's not the case, this video has embedding permitted. It's not just this one video, more examples with the same problem (all of them can be normally embedded via YouTube 'get code'):

I guess maybe these URL's don't pass through WP oEmbed regex, but I don't know.

#3 @nacin
13 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

All three of those videos are returning a 401 unauthorized HTTP error code.

So this is a YouTube issue (or feature, depending on the reason for 401ing). Point is, if it isn't processed by oEmbed, then we're not being given JSON or XML to work with.

The regex is #http://(www\.)?*#i, which would catch these videos.

Also -- the video you originally reported returns JSON for me and works for me.

Note: See TracTickets for help on using tickets.