Lyricator - Batch Lyrics Updater v1.00 [OUTDATED]

Download and get help for different MediaMonkey Addons.

Moderators: Peke, Gurus

vlatro
Posts: 4
Joined: Mon Aug 16, 2010 12:57 pm

Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]

Post by vlatro » Mon Aug 16, 2010 1:47 pm

Install the original script (available on page one in this thread).
Go to the "mediamonkey/scripts" directory and find Lyricator.js, open in notepad or another plain-text editor.
Select all the text and delete it.
Now look at my post, directly above yours. Select all the code in the code box (there's a SelectALL button so you don't miss anything). Copy and paste it into the lyricator.js file you just opened. Save the document.
Now fire up MediaMonkey and select an album. Go to tools -> Script -> Lyricator. It will scan the files and find the lyrics. When it finishes, just hit "Save" on the bottom of the window. It embeds the lyrics in the ID3 tag, which most players and ipods can read directly. It uses the "Artist" and "Title" fields, so make sure you have that information in the tag before scanning.

As of the time of this post, I'm running the script remotely from work on my home computer. If I get a chance, I'll try and post a complete package. Mind you this is a temporary fix until the original author decides what they want to do, thus there may not be a lot of support for this unofficial version, but it will function in the mean time.

SquirrelScript
Posts: 37
Joined: Sat Jun 06, 2009 6:34 am
Contact:

Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]

Post by SquirrelScript » Mon Aug 16, 2010 2:00 pm

I've edited the files, and created a new mmip for it as I'm also hosting the php file.
Thanks ripken204, Semmetju, and vlatro for the fix!

Lyricator 1.1.0.022 (unofficial)
Download: *Out Of Date*
Last edited by SquirrelScript on Fri Aug 20, 2010 5:22 am, edited 4 times in total.
~Got Code?~

Code: Select all

http://www.SquirrelScript.net

vlatro
Posts: 4
Joined: Mon Aug 16, 2010 12:57 pm

Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]

Post by vlatro » Mon Aug 16, 2010 2:04 pm

Don't thank me, I added 1 character. Thanks for the installable file. Between the two public soruces, yours and mine, it should reduce a bit of drag on the intermediate severs. Of course the poor guy who runs the actual lyrics site is probably pulling his hair out trying to figure out where dozens of requests per second are coming from, lol.

klaus_hh
Posts: 5
Joined: Sun Apr 13, 2008 1:52 pm

Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]

Post by klaus_hh » Mon Aug 16, 2010 2:04 pm

Thanks to all active skripters! It´s working fine.

K.

ripken204
Posts: 11
Joined: Tue Aug 10, 2010 1:29 am

Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]

Post by ripken204 » Mon Aug 16, 2010 2:11 pm

speed is alright for me, if it finds the lyrics i can get like 3-4 done per second, if it doesnt find any (worst case), it can take a second or so.
mine is running on a local server right now.

and for the record i didnt exactly come up with the PHP script, someone else did.
i just modified it to make it work with any server with PHP and added a couple little modifications.

SDJeff
Posts: 88
Joined: Sat Mar 01, 2008 9:36 pm

Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]

Post by SDJeff » Mon Aug 16, 2010 3:24 pm

Thanks guys!

Semmetju
Posts: 13
Joined: Sat Aug 14, 2010 7:05 am

Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]

Post by Semmetju » Mon Aug 16, 2010 5:10 pm

Just one more thing.
I suggest to replace the str_replace part in the php with the urlencode function.
Just to be sure there aren't any illegal characters left.
I'll submit the script right away...

Semmetju
Posts: 13
Joined: Sat Aug 14, 2010 7:05 am

Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]

Post by Semmetju » Mon Aug 16, 2010 5:11 pm

Here you go:

Code: Select all

<?php
   $artist = urlencode($_GET["artist"]);
   $title = urlencode($_GET["title"]);
   
   $html = file_get_contents("http://www.lyricsplugin.com/winamp03/plugin/?title=$title&artist=$artist", true);
     
   $arr1 = explode("javascript:getContent(",$html);
   $arr2 = explode(", ",$arr1[1]);
   $time = str_replace("'","",$arr2[2]);
   $arr3 = explode(")",$arr2[3]);
   $check = str_replace("'","",$arr3[0]);
   
   echo $lyrics =  file_get_contents("http://www.lyricsplugin.com/winamp03/plugin/content.php?artist=$artist&title=$title&time=$time&check=$check", true, stream_context_create(array("http"=>array("header"=>"Referer: http://www.lyricsplugin.com/winamp03/plugin/?title=$title&artist=$artist"))));
?>

ripken204
Posts: 11
Joined: Tue Aug 10, 2010 1:29 am

Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]

Post by ripken204 » Mon Aug 16, 2010 5:38 pm

thats the function i was looking for! i just couldnt think of it at the time, thanks.

SquirrelScript
Posts: 37
Joined: Sat Jun 06, 2009 6:34 am
Contact:

Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]

Post by SquirrelScript » Mon Aug 16, 2010 7:35 pm

Ive also added a little bit at the start to (to stop some errors being displayed)

Code: Select all

<?php
if ($_GET["artist"] && $_GET["title"]) {
   $artist = urlencode($_GET["artist"]);
   $title = urlencode($_GET["title"]);
   
   $html = file_get_contents("http://www.lyricsplugin.com/winamp03/plugin/?title=$title&artist=$artist", true);
     
   $arr1 = explode("javascript:getContent(",$html);
   $arr2 = explode(", ",$arr1[1]);
   $time = str_replace("'","",$arr2[2]);
   $arr3 = explode(")",$arr2[3]);
   $check = str_replace("'","",$arr3[0]);
   
   echo $lyrics =  file_get_contents("http://www.lyricsplugin.com/winamp03/plugin/content.php?artist=$artist&title=$title&time=$time&check=$check", true, stream_context_create(array("http"=>array("header"=>"Referer: http://www.lyricsplugin.com/winamp03/plugin/?title=$title&artist=$artist"))));
}
?>
~Got Code?~

Code: Select all

http://www.SquirrelScript.net

Vyper
Posts: 845
Joined: Tue May 23, 2006 5:53 pm

Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]

Post by Vyper » Tue Aug 17, 2010 8:14 am

Does this - Lyricator 1.1.0.022 - include the above changes?
Stop Button Freak

Semmetju
Posts: 13
Joined: Sat Aug 14, 2010 7:05 am

Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]

Post by Semmetju » Tue Aug 17, 2010 8:20 am

Vyper wrote:Does this - Lyricator 1.1.0.022 - include the above changes?
You don't have to worry about this, unless you're hosting the php yourself :wink:

Vyper
Posts: 845
Joined: Tue May 23, 2006 5:53 pm

Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]

Post by Vyper » Tue Aug 17, 2010 12:08 pm

Ah, okay, thanks. :D
Stop Button Freak

rrfpacker
Posts: 1041
Joined: Sat Jul 12, 2008 5:47 pm

Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]

Post by rrfpacker » Tue Aug 17, 2010 10:38 pm

A great big thank you to everyone who worked on this and got it up and running again. I really missed this one.

Now, if I could just find a site that has lyrics to more 1960's albums and Christian Rock lyrics I would be set.

Good job everyone.

Al4MM
Posts: 50
Joined: Fri Apr 30, 2010 3:31 am
Location: Pietermaritzburg, South Africa

Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]

Post by Al4MM » Tue Aug 17, 2010 11:55 pm

Amazing how many guys rallied to sort this one out. Thanks to all of you!

Locked