WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Video Thumbnails] Idea: Support messy Youtube URLs

[Plugin: Video Thumbnails] Idea: Support messy Youtube URLs

  • Daedalon
    Participant

    @daedalon

    WordPress core supports auto-embedding videos from Youtube and other video site links. It also understands the messier links that can be copy-pasted from the browser’s address bar, such as http://www.youtube.com/watch?NR=1&feature=endscreen&v=[videoid].

    I will add support for this soon. Embedding other messy types of links like http://www.youtube.com/user/[user]?feature=watch#p/a/u/0/[videoid] isn’t supported by WordPress core. Please let me know if a plugin allows embedding videos with link types that are not yet supported by Video Thumbnails and I’ll include support for them in my next patch.

    http://wordpress.org/extend/plugins/video-thumbnails/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Sutherland Boswell
    Participant

    @sutherlandboswell

    I don’t think this is something we need to worry about, because the links (at least those the core supports) should already be converted to their embed code by applying the content filter.

    $markup = $post_array->post_content;
    $markup = apply_filters('the_content',$markup);

    This is also supposed to take care of any videos embedded using plugins with their own shortcode or URL structure, but for some reason this isn’t always the case. Maybe try testing out this section to see if it is in fact converting most videos from the core and plugins to their embed code.

    Daedalon
    Participant

    @daedalon

    I reported this after testing that certain copy-paste URLs embed the video but Video Thumbnails didn’t catch the thumbnail. That issue is fixed with a simple adjustment of regex.

    Daedalon
    Participant

    @daedalon

    The reason is likely that Video Thumbnails doesn’t look at the converted embed code but the raw post.

    Daedalon
    Participant

    @daedalon

    Support added in 1.7.7-daedalon3 along with other patches.

    Daedalon
    Participant

    @daedalon

    http://www.youtube.com/watch?feature=player_embedded&v=VIDEOID is another messy Youtube URL that should work with the patched version.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Video Thumbnails] Idea: Support messy Youtube URLs’ is closed to new replies.