Shoutbox

Adding lyrics-websites on Now Playing - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Adding lyrics-websites on Now Playing (/showthread.php?tid=85802)

Adding lyrics-websites on Now Playing by murko on 09-06-2008 at 11:53 AM

Am using Matt -dt-īs script Now PLaying v. 1.3.4 on my computer and many of my songs in playlist cant be found on those three inbuilt pages

Now I have found a couple of great sites that I would like to implement in the script. Is this something I can do myself? (call me noob =)) or do I have to send in a requesrt for it to be built in in comming versions?

In that case, this is a request....
lyricwiki.org, is a page I would like to add..... for starters. If this is actually something I could add myself (WITH TUTORIAL AND/OR HELP) I be glad to add even more sites myself later on


Thanx in advance

/michael


RE: Adding lyrics-websites on Now Playing by Spunky on 09-06-2008 at 11:55 AM

As the script needs to extract the lyrics from the website, I think it's something -dt- would need to implement himself


RE: Adding lyrics-websites on Now Playing by murko on 09-06-2008 at 01:20 PM

Lets hope he sees this then =)

if not, I guess I have to bother him with a PM


RE: Adding lyrics-websites on Now Playing by -dt- on 09-06-2008 at 01:48 PM

you can create them with a little programming knowledge there's a folder called lyric_parsers in the Now Playing script folder you'll find examples there

the script will auto load any file in there, just make sure you follow the correct lyric file syntax

eg

custom.lyrics.js

code:
var name = "custom lyrics"; //name shown
var className = "lp_custom"; //the object name

var lp_custom = function(){}

lp_custom.prototype = {
"getList" : function(title, artist, callback){
    /*do whatever you have to do with the title and artist, then call the callback and pass an array of objects with the format of

{id : "", artist : "", title : ""}

*/

  },


getLyrics : function(id, callback){
/*
    id is the id you provide in the above function
    once you get the lyrics, call the callback with the lyrics as a string
*/
}
}



RE: Adding lyrics-websites on Now Playing by murko on 09-06-2008 at 01:58 PM

ok. will check that out. But really dont expect me to pull it off =)


RE: Adding lyrics-websites on Now Playing by ShawnZ on 09-06-2008 at 03:00 PM

unzip this to "c:\program files\messenger plus! live\scripts\now playing\lyric_parsers":


[Image: lyricwikiscriptyr7.jpg]


btw dt, now playing doesn't work with 64-bit wmp :<


RE: RE: Adding lyrics-websites on Now Playing by murko on 09-06-2008 at 04:00 PM

quote:
Originally posted by ShawnZ
unzip this to "c:\program files\messenger plus! live\scripts\now playing\lyric_parsers":




Wow. ShawnZ! Thanx a million. I will remember you when I want to add a couple of more sites ;)