WordPress.org

Ready to get started?Download WordPress

Forums

Video Thumbnails
Idea: Support messy Youtube URLs (6 posts)

  1. Daedalon
    Member
    Posted 2 years ago #

    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/

  2. Sutherland Boswell
    Member
    Plugin Author

    Posted 2 years ago #

    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.

  3. Daedalon
    Member
    Posted 2 years ago #

    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.

  4. Daedalon
    Member
    Posted 2 years ago #

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

  5. Daedalon
    Member
    Posted 2 years ago #

    Support added in 1.7.7-daedalon3 along with other patches.

  6. Daedalon
    Member
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic