I've made another improvement to the plugin (final one that I could think of): now the queries for the youtube video for a specific track/artist are done locally, by the plugin (using an improvement in youtube-subscriptions), instead of going to cant.io. This means slightly faster clip loading times, but most importantly you might get better results than you would get on the cant.io site.
This promise is because they can't play back clips that can't be embedded in a window (youtube restriction), while youtube-subscriptions (and youtubeHD for that matter) can! For example, this can be seen if you try to watch "Y.M.C.A - Village People" (explained below):
The changes makes a direct search with youtube (for track - artist) and picks the first results (ordered by relevance/rating/view count) and it plays it back. The order is configurable via WEC (relevance is default because it gets the best results).
Here are the results you can expect for the track I mentioned earlier:
- Code: Select all
Clip you get on cant.io site: tDF71LjRB34 (some germans singing YMCA)
CANTIO_PREFER_LOCAL_YOUTUBE off: tDF71LjRB34 (it's normal to be the same cant.io returns)
CANTIO_PREFER_LOCAL_YOUTUBE on, order by relevance: CS9OO0S5w2k (YMCA official clip)
CANTIO_PREFER_LOCAL_YOUTUBE on, order by rating: 02puEomM-P8 (Speed Painting Haines Junction on Alaska Highway - I have no clue why!)
CANTIO_PREFER_LOCAL_YOUTUBE on, order by viewCount: kXhy7ZsiR50 (Moonwalk - Michael Jackson - Billie Jean - The First Moonwalk King Of Pop - I get the same result on youtube site)
The order by parameters might be a hit or miss. So far, with results ordered by relevance, I got about 19/20 correct clips (the exception was for Sugarbabes - Overload. You should see the result I got
This feature (CANTIO_PREFER_LOCAL_YOUTUBE) is enabled by default. If you don't like it, you can disable it in WEC.
Well, give it a try and let me know if you get wrong results (tell me the song + artist name and the order by method used).