rg3/youtube-dl — pull request #230 by non7top (2011-11-26 19:19:52+00:00)
Title: Issue #229 

Suggested solution for Issue #229
It is quite dirty meaning that it will still loop through all elements, but it will do exactly what its meant to.