Lyricator - Batch Lyrics Updater v1.00 [OUTDATED]
Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]
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.
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.
-
- Posts: 37
- Joined: Sat Jun 06, 2009 6:34 am
- Contact:
Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]
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*
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
Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]
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.
Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]
Thanks to all active skripters! It´s working fine.
K.
K.
Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]
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.
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.
Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]
Thanks guys!
Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]
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...
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...
Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]
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"))));
?>
Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]
thats the function i was looking for! i just couldnt think of it at the time, thanks.
-
- Posts: 37
- Joined: Sat Jun 06, 2009 6:34 am
- Contact:
Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]
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
Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]
Does this - Lyricator 1.1.0.022 - include the above changes?
Stop Button Freak
Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]
You don't have to worry about this, unless you're hosting the php yourselfVyper wrote:Does this - Lyricator 1.1.0.022 - include the above changes?
Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]
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.
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.
Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]
Amazing how many guys rallied to sort this one out. Thanks to all of you!