Sign up here and you can log into the forum!

UMSP Plugin: Cantio

UMSP Plugin Depot, the place for sharing plugins & info about them. No requests, just plugins/code.

Re: UMSP Plugin: Cantio   

Postby mad_ady » Sun Oct 02, 2011 10:30 pm

Small update to the plugin - added very nice album art - provided by shunte (thanks again, shunte!).

Also, thanks to passatgt for his suggestions. Most of them will get implemented in the near future...
User avatar
mad_ady
Developer
 
Posts: 3027
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: UMSP Plugin: Cantio   

Postby mad_ady » Sun Oct 16, 2011 1:00 am

Sorry I took so long, but I was out of time.

I made another update to the plugin and moved from scraping the cant.io site to an integration with last.fm. Now the results from Most popular songs/Most popular artists and search (canned search and regular search) come directly (and by default) from last.fm instead from cant.io. You may notice some small differences in the items returned or their order, compared to the site. You will be getting much more results (paginated). However, if you don't like it, disable CANTIO_PREFER_LASTFM from WEC.

Playlists, Radio, Favorites and Now playing still come from cant.io.

I will try to add some more functionality later today... In the mean time, give it a try and let me know if there are issues.
User avatar
mad_ady
Developer
 
Posts: 3027
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: UMSP Plugin: Cantio   

Postby mad_ady » Sun Oct 16, 2011 4:34 am

Added album tag to canned_search, added support for m3u extended playlists (local), and added randomize option to playlist content (configurable via WEC) for playlists, now playing and favorites.

The xml format has changed a bit - re-read the first post to learn how to use the new features (local playlists :D)
User avatar
mad_ady
Developer
 
Posts: 3027
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: UMSP Plugin: Cantio   

Postby mad_ady » Sun Oct 16, 2011 6:11 am

One last change for today: I have changed Radio mode to work with last.fm directly. It now generates a list of 30 songs from each genre and is much faster than the previous scraping method.
User avatar
mad_ady
Developer
 
Posts: 3027
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: UMSP Plugin: Cantio   

Postby mad_ady » Wed Oct 19, 2011 8:26 am

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 :lol:)

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).
User avatar
mad_ady
Developer
 
Posts: 3027
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: UMSP Plugin: Cantio   

Postby mad_ady » Mon Apr 23, 2012 12:42 pm

Made some internal changes to allow compatibility with the upcoming UMSP_LAN feature.
The plugin behaves the same way.
User avatar
mad_ady
Developer
 
Posts: 3027
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Previous

Return to UMSP Plugins

Who is online

Users browsing this forum: No registered users and 1 guest