Help - Search - Members - Calendar
Full Version: [WS] Import lyrics from websites
Mp3tag Forums > Mp3tag - International > Development > Web Sources Scripts
Pages: 1, 2, 3
dano
" chars must be escaped with \"

i.e. findline "<a href=\""

and last
say "|"
in index part must be
saynewline
prequarius
i'm getting an error too!

Error connecting to server: www.leolyrics.com

>>Could not connect to host

this was also happening to lyricwiki, but after the patch update and redownloading the .src's i'm still having an issue with leolyrics. any ideas why this is being blocked on my end when it used to work before?

thanks for the assistance!
Mike_nl
For weeks now if you search on leoslyrics you will get the following error

"An unknown error has occured. This has been logged and hopefully will be fixed. If you think you know what caused the problem or this problem doesn't go away, e-mail Leo (leo@leoslyrics.com)."


So it has nothing to do with the Websources scripts
prequarius
are there any other scripts that import lyrics other than the 3 formentioned on the front page? i looked around feedb but found nothing focusing on lyrics. regardless, i've used mp3tag for a few months and think its great.
dano
I've added another one to my post and fixed Leo (now uses G00gle search)
ptrk.mj
QUOTE (dano @ Apr 25 2010, 00:55) *
I've added another one to my post and fixed Leo (now uses G00gle search)


The only script working (at least for me) is lyricsplugin.src (I don't know which site it uses)
lyricWiki throws an error: Not Found (404)
Leo (G) states that there are no entries matching search criteria, though I know there are (my search criteria was: "Q-Tip%20intitle:barely in love")

Am I doing something wrong or maybe the scripts went outdated?
The_Original_Invisible
QUOTE (dano @ Apr 24 2010, 23:55) *
I've added another one to my post and fixed Leo (now uses G00gle search)


When I click on Tag Sources > Lyrics > leoslyrics

I just get the message

"Error connecting to server: www.leoslyrics.com
Could not connect to host"

When I try lyricswiki I just get partial results returned, like this:-

eng||'''Whispered:'''
Let's stay together
I, I'm so in love with you
Whatever you want to do
Is all right with me
'Cause you m[...]

Any ideas anyone?
Vinc
hey guys,

can you search for all tracks at once automaticly?

i want to search for the lyrics for every song and if its there add to the tag and take the next and if not then take the next, too!!

how to do this=

??

thanks for answers!
The_Original_Invisible
QUOTE (The_Original_Invisible @ May 27 2010, 21:47) *
When I click on Tag Sources > Lyrics > leoslyrics

I just get the message

"Error connecting to server: www.leoslyrics.com
Could not connect to host"

When I try lyricswiki I just get partial results returned, like this:-

eng||'''Whispered:'''
Let's stay together
I, I'm so in love with you
Whatever you want to do
Is all right with me
'Cause you m[...]

Any ideas anyone?


I've just reinstalled the latest version (2.46a) as I thought maybe that would do it, but still I have the same problem. Here's a screen dump. Please could someone help?



Uploaded with ImageShack.us


Thanks


dano
You're using an outdated version of the Leo script and upgrading Mp3tag won't help you.
You need to download new scripts from the first post here.
But I don't offer Leo anymore.

And I cannot reproduce what you say about lyricswiki at all.
Spaceboy
"Error connecting to server: www.darklyrics.com
>> not found (404)
dano
What did you write in the query box?
Maybe they don't have that album or you have misspelled it.
Spaceboy
QUOTE (dano @ Aug 11 2010, 15:50) *
What did you write in the query box?
Maybe they don't have that album or you have misspelled it.


Yeah, my mistake. They don't have the album.
The_Original_Invisible
Sorry to be a pain. Going back to LyricWiki and the source codes. I'm still only getting partial results returned.

In the additional information box I can see only partial values being returned. When I then click on the "This album on lyricwiki" link it takes me to a page that displays like the following:-

Lulu Shout Well....... You make me wanna shout Look my hands jumpin' Look my heart's thumpin' Throw my head back Come on now. Don't forget to say you will Don't forget to shout yeah yeah yeah yeah yeah Say you wil[...] http://lyrics.wikia.com/Lulu:Shout

So it's finding the song ok, but it sort of cuts every song lyric off short. Any idea why? Can anything be done about it? I love mp3tag, but this is really slowing me down!

Cheers

Lee
dano
It doesn't show the complete text when it is very long, but it will tag the whole text.
The_Original_Invisible
QUOTE (dano @ Oct 5 2010, 22:09) *
It doesn't show the complete text when it is very long, but it will tag the whole text.


No, it doesn't. I wouldn't mind if it did, but it just displays just the first few lines like this

Lulu Shout Well.......
You make me wanna shout
Look my hands jumpin'
Look my heart's thumpin'
Throw my head back
Come on now. Don't forget to say you will
Don't forget to shout yeah yeah yeah yeah yeah
Say you wil[...]

And then stops

Very weird....
dano
What kind of audio files do you tag? Did you change the script?
Screenshot?
The_Original_Invisible
QUOTE
What kind of audio files do you tag? Did you change the script?
Screenshot?

Just normal mp3s. I've tried it on my work pc, my laptop and my home pc, but same thing happens on all 3. I haven't altered the script at all.

Here are some screen dumps
Click to view attachment

[2010.10.05 - 22:53] - Dano, I've just removed all my other scripts from the source folder and it works now!! Many thanks for your help though!
dano
Your search box shows that you were not using the latest script from this thread.
The text now is just
Lulu:Shout
The_Original_Invisible
QUOTE (dano @ Oct 5 2010, 23:00) *
Your search box shows that you were not using the latest script from this thread.
The text now is just
Lulu:Shout


Yeah, I've taken out all the other scripts (Lyrics - LyricWiki, Lyrics#leoslyrics, Lyrics#lyricsSeek etc) from my sources folder and left just the latest Lyrics#lyricWiki script and it all seems fine now.

Thanks a million for your help. REALLY appreciated!
InspectorMustache
This thing took like forever but I've finally finished the script for SongMeanings. Thanks to dano for helping me out with the scripting lingo.
I'm pretty new to this, seems to be working fine though. Unfortunately the SM search query only allows entering either artist or title but not both at the same time. So with one-word song titles results might get a little vague. Try it out though, this is still my favorite lyrics site by far.
Click to view attachment
dsj777
I'm a noob with scripts, so finding and trying yours was great - I was not aware of that lyric site.

I encourage you to continue to develop this script, especially since it's beyond my skill to do this. I can only get your script to work on one file at a time - if that's only way it works for now, that's cool, but it would be great to work on a selection of files in some fashion.

thanks again.
stevewrightnz
Here's one for Metrolyrics.com rolleyes.gif

--------------------------------cut----------------------------------------

# Mp3tag (v2.42a) parsing for MetroLyrics, created by SteveW on 2010-11-05
#
# This *.src file must be placed in your sources directory.
# On Windows XP it's C:\Documents and Settings\*username*\Application Data\Mp3tag\data\sources
#
# You can quickly reach it with [Windows Key + R] and enter %appdata%\Mp3tag\data\sources
# Or enter %appdata%\Mp3tag\data\sources in the Explorer address bar
#
#
# 2010-11-05:
#

[Name]=metrolyrics
[BasedOn]=metrolyrics.com
[AlbumUrl]=http://www.metrolyrics.com/
[WordSeperator]=-
[SearchBy]=$replace($lower(%title%,'(' ),&,%%26)-lyrics-$lower(%artist%).html

[ParserScriptAlbum]=...
# ###################################################################
# A L B U M
# ###################################################################

# UNSYNCEDLYRICS
outputto "UNSYNCEDLYRICS"

findline "<div id="lyrics">"
regexpreplace "<div id="lyrics">" ""
regexpreplace "\s*<br ?\/?>\s*" "\r"
regexpreplace "</div>" ""
sayrest
--------------------------------cut----------------------------------------

stevewrightnz
DetlevD
Thank you for sharing.

There is a syntax errror, which Mp3tag does not complain.
[SearchBy]=$replace($lower(%title%,'(' ),&,%%26)-lyrics-$lower(%artist%).html

Artist seems to be needed as "Lastname-Firstname".

DD.20101110.1050.CET
SBH
I keep getting:
Error connecting to server: lyrics.wikia.com
>>Authorization Required (401)

Any ideas???
SBH
QUOTE (SBH @ Nov 22 2010, 12:06) *
I keep getting:
Error connecting to server: lyrics.wikia.com
>>Authorization Required (401)

Any ideas???

I tried it on my home computer last night and it worked. I'm guessing it's my network at work causing problems. Any workarounds?
pone
Here is a new version for magistrix.de.
You can add it to the starting post if you want.
I did not much testing, but it seems to work. Can only get the first ten results of a search because i found no option to display more results in one page.
Writes only the UNSYNCEDLYRICS tag field and uses %artist%+%title% for search.

edit:
i uploaded it again, because I forgot to deactivate the debug file.
dano
I've added the contributions by other users to the first post. Thanks.

pone, why do you add 3 spaces at the start of every line?
pone
ZITAT(dano @ Dec 7 2010, 14:36) *
pone, why do you add 3 spaces at the start of every line?

To mark the difference between headlines in bold print and normal text. Since I can't use bold print for the unsyncedlyrics tag field, I let the bold lines start at the left and indent the text lines a bit.
I thought it looks quite nice, but I have no problem if you change that.
neyelia
Hello everyone, since a few days, I got a problem, the same that Mycow related on Septembre 12th 2009 :
QUOTE (Mycow @ Sep 12 2009, 02:14) *
Unfortunately the darklyrics script is not working properly...

It is a really helpful script and it works perfectly sometimes, for example the band Blind Guardian, but with others it doesn't, like Grave Digger or Annihilator, even though the lyrics are on the website and when I click on "This album on Darklyrics" it redirects me to the correct page. It shows under additional information: UNSYNCEDLYRICS <Error>.


The other sciprts work well and are really really useful, thank you so much !
dano
Try the update.
neyelia
QUOTE (dano @ Dec 11 2010, 01:54) *
Try the update.


Tried, bug fixed, thank you very much smile.gif
tbum20
Hey all, I was wondering if its possible to create a lyric retrieval script for CowboyLyrics .com? I took a quick look at the scripting language used in the other available src's and vaguely could follow how lyrics were returned, I have no real scripting experience. The sites search feature is CGI based using the "Get" action "cgi-bin/cseek.cgi" powered by mnogosearch. One thing that looked like might be an issue, if scripting is possible, the urls to the page holding lyrics are, ..\lyrics\artist-name\name-of-song-(then here is a random variable). I wasn't sure if there was command which is able to handle a variable, like %dummy% in mp3tag.

Thanks Guys!
dano
Here's my script for cowboy lyrics...
shlomikalfa
Hi,

I'm a new user, actually I was using the lyricsplugin for winamp to get lyrics displayed and now I'm addicted, however it stopped working (probably my dorms IP got blocked sad.gif).

Anyhow, Not being able to get the lyrics for multiple files / the entire list is ridiculous !!! Am I really suppose to collect the lyrics for my 20K+ list one by one ?!?

I really like the idea of having my lyrics written to the songs but it shouldn't be that difficult.
It's a simple tag writing job.

Anyhow, hoping you guys will cre8 some fix for that... otherwise I'll just have to write a program that does that and I hate wasting time on things that are already out there... (All you need is a simple fix that will make it run file by file or in bunches... depends on db abilities and software configs)

Hoping I'm not too rude,
SK.
tbum20
QUOTE (dano @ Feb 1 2011, 16:00) *
Here's my script for cowboy lyrics...


hey dano.

Thanks a lot for the script, works great man!
tbum20
QUOTE (shlomikalfa @ Feb 6 2011, 22:42) *
Hi,

I'm a new user, actually I was using the lyricsplugin for winamp to get lyrics displayed and now I'm addicted, however it stopped working (probably my dorms IP got blocked sad.gif).


You prob. just need to update your lyricsplugin as it was recently updated, your colleges server is prob. blocking the redirection that occurs when using older versions.
tbum20
QUOTE (dano @ Feb 1 2011, 16:00) *
Here's my script for cowboy lyrics...


Quick question, In the scripts initial definitions is the following line, [WordSeperator]=+ , telling the script to replace spaces with "+" when querying cowboylyrics.com or is it defining what is used as a word spectator when extracting information from mp3tag?

Other than my question, after looking at your code I was able to piece together how these src scripts are compiled, big help!

Thanks Again.

tbum20
My problem was just about every album had a couple songs that wern't found but when I replaced the search terms from %artist% %title% to %artist% %album% in your script it returned all songs indexed for that particular album far more consistently. Using album as a serach term seemed to eliminate issues due to minor differences between song titles. I saw it also returned the page where the albums complete song list was indexed and by using the handy hyperlink feature i could quickly locate any songs which weren't returned for any other reason.
Mihawk90
Hey Guys smile.gif

Concerning the LyrikWiki script I got 2 things.

the first is, the script seems to not work or it can't get the lyric when there is a translation. You can try this with this lyrics and also almost all Megaherz Lyrics
I just couldn't get the lyrics, the script finds the page but doesn't get the lyrics.
I wasn't able to find the reason, because the line the script searches for does exist in the source.
So is it possible to get one or both languages?
/edit
found the reason, on translated there are 3 occurences of "<div class='lyricbox'". The First one has no content, just some comment, don't know what they are using this for, the second one is the original language, the third is the translated.
When using
findline "<div class='lyricbox'" 2
it works for translated lyrics, but non-translated lyrics it wouldn't work anymore, because there's only one occurance...
don't know how to solve this :/


The second thing, is it also possible to get the albumcover from lyricwiki, too?
You could do this via 2 ways, the first, easier, way is to go directly to the file:

QUELLTEXT
http://lyrics.wikia.com/File:%artist%_-_%album%.jpg

this should work in 99% of all cases, because it is somewhat of policy for uploading cover images on lyricwiki.
I've tried this at the end of the file:
QUELLTEXT
# ###################################################################
#                    C  O  V  E  R
# ###################################################################

[SearchBy]=File:$caps(%artist%) - $replace($caps(%album%),&,%%26,?,%%3F).jpg
[ParserScriptAlbum]=...
outputto "coverurl"
findline '<img alt="File:' + %artist% - %album%.jpg'" src="
sayuntil '" width='


but it wont work :/
The Link at the bottom of the window ("This album on Lyricwiki") does indeed link to the cover file page, but it doesn't get the imagefile :/ and the debug log doesn't seem to work for me
it wont work even as its own script and the debug log wont work either :/

additionally, there is no lyric anymore and no search for it, is it even possible to do 2 different searches in one script?



the second way would be going via album and/or artist pages and search the cover there in the source, but that's a bit more complex and not guaranteed to work because not every album has it's own page. and I think the rate of no albumpages is higher than a wrong named coverfile.



Just found a third thing, question marks have to be encoded in the URL, see here:
QUELLTEXT
change line 17:
[SearchBy]=$caps(%artist%):$replace($caps(%title%,'(' ),&,%%26)

to:
[SearchBy]=$caps(%artist%):$replace($caps(%title%),&,%%26,?,%%3F)

and you're done


I think this is it for now.
greets
~mihawk~
WookiePL
Ok, I've the Song Meanings lyrics script, it is working, but to make faster my work with songs I want to create the keyboard shortcut to this script in mp3Tag. How can I do that??
dano
You can call the last used script with CTRL+SHIFT+I

You can also add & signs to the file name:

Rename Lyrics#SongMeanings.src to &Lyrics#&SongMeanings.src

Then you can call it by pressing ALT+S, L, S

or by removing the # sign you can save one key stroke:
Lyrics &SongMeanings.src makes ALT+S, S
manuedit
Lyrics by letras.terra.com.br !

http://db.tt/CrfLc2N
is
http://dl.dropbox.com/u/1791791/Lyrics%23Terra.rar
Mike_nl
QUOTE (manuedit @ Sep 2 2011, 14:19) *
Lyrics by letras.terra.com.br !

http://db.tt/CrfLc2N


It seems to be a RAR file hosted on DropBox.
manuedit
QUOTE (Mike_nl @ Sep 2 2011, 08:39) *
It seems to be a RAR file hosted on DropBox.

It is. Unzip.
InspectorMustache
SongMeanings changed their site layout slightly. Has something to do with copy right reasons, I don't know...
Anyway, here's an updated version of the script, since the old one stopped working for most lyrics.

The forum doesn't allow me to upload it (what's up with that?), so here's a MediaFire link.

EDIT: Uploaded the wrong file, sorry. Now it's correct.
Mihawk90
/push

Referring to http://forums.mp3tag.de/index.php?s=&s...ost&p=55250
Anyone found a solution for pulling covers from lyricwiki?
I am not really experienced with the API of MP3Tag and I have no Idea how to pull a coverimage from a site :S
Would be great if someone found a way, because LyricWiki got most albums covered so it is a nice source for album arts
dano
But the covers are of mixed quality
Mihawk90
Thanks for the script, just used some hours to try it again myself.
After 3 hours (and at least one of that just cause i couldnt get my debug to work) i just realised that I searched for the wrong parameter and for that reason nothing could be found (is it possible that the FindLine function doesn't accept variables like %artist% or %album% ? anyway....)

got it to work as I looked at your script and searched for a better method for FindLine ...

I used the different of the 2 Methods I mentioned in my post so I used the direct File Page for searching for the full-size-file.

Here's my script, if anyone wanna use it smile.gif
Click to view attachment

Ah by the way, you need to capitalize your search strings in your script just like on the original lyricwiki script cause on lower-case-abums or -artists it wouldn't find anything smile.gif

So, think we got both methods covered now biggrin.gif

Thanks again for the script and indirect help wink.gif
FreaQ
I have a problem with the script for magistrix.de

Even though the lyrics are on the website, in MP3Tag it won't be displayed.
I can select the proper artist/title in the selection window, but in the tagging window there is no unsyncedlyrics field.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.