Related to my previous suggestion of applying the oEmbed filters to posts before processing, I noticed that the links in a post are proceeded in a certain order, yielding undesirable results. This is because some embedding methods are parsed before others.
For example a post that contains first a video embedded with a youtu.be URL and then later a different one embedded with a youtube.com URL, would show the later video's thumbnail, as youtube.com URLs are searched for first.
What's more, the current regexps don't differentiate between Youtube links that are to be auto-embedded, and hyperlinks to Youtube pages. For example
<a href="http://youtube.com/watch?v=EXAMPLE">For more information, see this video's comments on Youtube</a> is treated by Video Thumbnails 1.8.1 as an embedded video.
This second issue should be easily fixed by a proper prefix and suffix to the URLs that can be meaningfully used for hyperlinks. Either we could require that before the URL there is either the beginning of the post, a blank space or a line break, and similar for after the URL, or we could just make sure that the URL is not immediately prefixed by
The first issue, having different types of links be processed with different priority, would be best solved by making all the links equal by running the post through oEmbed filters.
Sutherland: What do you think?