[wp-trac] [WordPress Trac] #32161: support youtube search friendly URL usualy used for sharing http://www.youtube.com/v/dr4HHepGxxM

WordPress Trac noreply at wordpress.org
Tue Apr 28 15:46:05 UTC 2015


#32161: support youtube search friendly URL usualy used for sharing
http://www.youtube.com/v/dr4HHepGxxM
--------------------------+------------------------------
 Reporter:  ritter.aaron  |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Embeds        |     Version:  4.2.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by dmchale):

 If I understand what you're saying @MikeNGarrett, you're suggesting what I
 cautioned against. If you simply strip the video ID off the url and curl
 to some other URL, you're making an assumption of what you should curl to.

 Plus you don't inherently know if something besides the video ID is on the
 end of the url. I think it's much safer to first curl to the provided url
 and look there for the canonical url to youtube's "watch" page.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32161#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list