Embed.ly also supports non-video sites.
I added this check to prevent failure in case of a webpage that uses embed.ly to embed some non-video content and also contains a video that is detected by code after this (e.g. jwplayer).
There is no proper way (?) to detect if an url is supported by youtube-dl, so I made this "hack".