Grab YouTube Thumbnail AFTER Post?

I’m using a feed to receive special YouTube feeds organized via playlists. Unfortunately, the URL is not included in the description field, but I can get the videos to display by including the source URL on post.

This works fine except since the URL is not in the post area in the editor, the YouTube thumbnail grabbers I have tried don’t retrieve these thumbnails.

Read More

Does anyone know a way I can fetch the featured image through the published version of the post? It needs to be automated because I have way to many post items to adjust them manually.

Related posts

Leave a Reply

1 comment

  1. Each YouTube video has 4 generated images. They are predictably formatted as follows

    http://img.youtube.com/vi/<insert-youtube-video-id-here>/0.jpg
    http://img.youtube.com/vi/<insert-youtube-video-id-here>/1.jpg
    http://img.youtube.com/vi/<insert-youtube-video-id-here>/2.jpg
    http://img.youtube.com/vi/<insert-youtube-video-id-here>/3.jpg
    

    The first one in the list is a full size image and others are thumbnail images.

    so if you have the video url the you can extract the video id from it call your image, and to do that on posts that are already posted you can use the_content filter hook.