Tooltip Update, YouTube API

I’ve just uploaded a few changes regarding the tooltip that appears when you hover the “?” icons near Emmy’s results.

First of all, the script behind this tooltip now makes use of the YouTube Data API Protocol for retrieving relevant videos for each band or movie. Yes, I admit, I should have done this in the first place instead of parsing the HTML of the search results page. Besides being more elegant and definitely faster, this new approach solves a problem that I was confronting with for quite a while: retrieving only embeddable movies. Some of the movies that Emmy was showing, if played, where displaying the “This movie is no longer available” message. I hated this message, and I’m sure some of the users found it very annoying, too. This was due to the fact that the YouTube user that uploaded that movie specified that the movie is not embeddable (cannot be embed on other sites). Using the “format” custom parameter for performing the search with the Data API enabled me to search only for movies that CAN be embed (this option isn’t available for searches performed on the YouTube site).

Another thing is that the tooltip no longer disappers when you move the mouse out of it, as it has been designed to do until now. You have to click on the “Close [X]” link in order to close it. This way, a user can watch and listen to a music video/movie trailer while doing other things with his/her mouse, instead of having to keep it in the tooltip area.

I hope you will find these updates helpful :)

P.S.: I would also recommend SimplePie for parsing Atom feeds. Although I’ve ran into a couple of problems, it finally worked out like a charm.

Comments are closed.