Lyrics Fetcher

Post a reply

Visual Confirmation

To prevent automated access and spam, you are required to confirm that you are human. Please place a check mark next to all images of monkeys or apes. If you cannot see any images, please contact the Board Administrator.

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Topic review
   

Expand view Topic review: Lyrics Fetcher

Re: Lyrics Fetcher

Post by roycordero » Wed Jun 18, 2014 12:33 pm

hi sorry but i have the same problem of the 6 lines of lyricvs...

Re: Lyrics Fetcher
Post by gatttter » Sat Mar 15, 2014 6:45 am

I have the problem with this source. It only returns 6-7 lines of lyrics.

i used to have my lirics good but since a few days ago everiting just screw up... how can fix it??? please

Re: Lyrics Fetcher

Post by ACDias » Thu Mar 27, 2014 5:53 pm

Code: Select all
<source>
      <name>AZLyrics</name>
      <url value="http://www.azlyrics.com/lyrics/{artist}/{song}.html" />
      <xpathLyrics>//*[@id="main"]/div[3]</xpathLyrics>
      <artistlowercase>True</artistlowercase>
      <artistremovespaces>True</artistremovespaces>
      <songlowercase>True</songlowercase>
      <songremovespaces>True</songremovespaces>
      <removespecialchars>True</removespecialchars>
      <artistremovethe>False</artistremovethe>
    </source>

Re: Lyrics Fetcher

Post by Guest » Wed Mar 26, 2014 9:09 pm

Hi,

Definite noob here, but why hasn't anyone explained replacing the xpath code this way:
Find the config.xml file on your computer. Mine was located here: C:\Users\username\AppData\Roaming\LyricsFetcher
then right click on the file and select "open with" Notepad and then replace this ORIGINAL code:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <showBallons>True</showBallons>
  <useProxy>False</useProxy>
  <sources>
    <source>
      <name>Terra</name>
      <url value="http://letras.terra.com.br/winamp.php?artista={artist}&amp;musica={song}" />
      <xpathLyrics>/html/body/div[1][@id='tudo']/div[1][@id='letra']/p</xpathLyrics>
      <artistlowercase>False</artistlowercase>
      <artistremovespaces>False</artistremovespaces>
      <songlowercase>False</songlowercase>
      <songremovespaces>False</songremovespaces>
      <removespecialchars>False</removespecialchars>
      <artistremovethe>False</artistremovethe>
    </source>
  </sources>
  <instrumentalText>Instrumental</instrumentalText>
</configuration>


with this NEW code:
???

Unfortunately, I cannot post the new code, because I have tried every possible variation of what I thought the following meant:
Re: Lyrics Fetcher

Post by ACDias » Sun Jan 26, 2014 9:32 pm
Yes it is
URL for AZLyrics: http://www.azlyrics.com/lyrics/{artist}/{song}.html
XPath: //*[@id="main"]/div[4]
Check Artist Lower Case, Artist Remove Spaces, Song Lower Case and Song Remove Spaces

And erase terra.


I'm not sure what is meant by "Check Artist Lower Case, Artist Remove Spaces, Song Lower Case and Song Remove Spaces And erase terra."

This was one of my attempts. I changed the URL and xpath as indicated and then changed the values to TRUE for the four items listed. This did not work.
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <showBallons>True</showBallons>
  <useProxy>False</useProxy>
  <sources>
    <source>
      <name>Terra</name>
      <url value="http://www.azlyrics.com/lyrics/{artist}/{song}.html" />
      <xpathLyrics>//*[@id="main"]/div[3]</xpathLyrics>
      <artistlowercase>True</artistlowercase>
      <artistremovespaces>True</artistremovespaces>
      <songlowercase>True</songlowercase>
      <songremovespaces>True</songremovespaces>
      <removespecialchars>False</removespecialchars>
      <artistremovethe>False</artistremovethe>
    </source>
  </sources>
  <instrumentalText>Instrumental</instrumentalText>
</configuration>



Or maybe I'm doing this completely wrong. Could someone please post the NEW code that would solve the Terra issue of only pulling the first couple lines of lyrics? Thank you so much!

Re: Lyrics Fetcher

Post by Coldblackice » Thu Mar 20, 2014 1:38 am

Great addon! Thanks.

Re: Lyrics Fetcher

Post by gatttter » Mon Mar 17, 2014 4:53 am

I actually tried that at the beginning, but the icon would disappear immediately, tried a few times, but nothing come up.

Also I managed to uninstall, but now I can't install:
Image
Tried to manually delete the file (.vbs) in directory, didn't help.
I installed addons to browsers, other music players, never had that much problems. Could there be something wrong with mediamonkey install or something? I installed the latest version, on windows7.
Or is a restart required? It didn't ask to restart.

It always said install was unsuccessful but now lyricfetcher is again in extensions but it doesn't do a thing. Before it showed pop up "balloons" (about fetching lyrics) near the clock for 2 seconds and disappeared - icon and the "balloon"

I had uninstalled it cleanly, now it's neither installed, neither uninstalled. I get errors simply opening mediamonkey.

Saw a solution to fix another addon. For some reason vbs files get installed in 2 locations, which results in errors. At least for that plug in, deleted vbs files in roaming folder and it works. But lyricfetcher has only unintal.ini file there

Re: Lyrics Fetcher

Post by ACDias » Sun Mar 16, 2014 8:05 pm

gatttter wrote:Yes, I saw this:

ACDias wrote:Yes it is
URL for AZLyrics: http://www.azlyrics.com/lyrics/{artist}/{song}.html
XPath: //*[@id="main"]/div[4]
Check Artist Lower Case, Artist Remove Spaces, Song Lower Case and Song Remove Spaces

And erase terra.


But I'm new to mediamonkey and had no idea how to actually change this. The program file only installs, on mediamonkey there are no option. How do you open it so you can edit?

look at the first post of this topic. theres a screenshot. of the icon near the clock. double click it. the options will appear

Re: Lyrics Fetcher

Post by gatttter » Sun Mar 16, 2014 2:25 am

Yes, I saw this:

ACDias wrote:Yes it is
URL for AZLyrics: http://www.azlyrics.com/lyrics/{artist}/{song}.html
XPath: //*[@id="main"]/div[4]
Check Artist Lower Case, Artist Remove Spaces, Song Lower Case and Song Remove Spaces

And erase terra.


But I'm new to mediamonkey and had no idea how to actually change this. The program file only installs, on mediamonkey there are no option. How do you open it so you can edit?

Re: Lyrics Fetcher

Post by ACDias » Sat Mar 15, 2014 1:12 pm

I'm aware of the problem of uninstalling. Probably you were executing the program and the uninstaller tried to delete.
About the fetching problem: there's no option inside media monkey. it installs a program outside media monkey. It will start along with media monkey and there will be a icon near the clock on windows to open it. Terra is not working anymore, so you'll have to use another source. I've put one that works sometime ago in this topic.

Re: Lyrics Fetcher

Post by gatttter » Sat Mar 15, 2014 5:45 am

I have the problem with this source. It only returns 6-7 lines of lyrics.

I also can't seem to find the options of the addon. In extensions options are greyed out. I don't see anything similar to the screen shots shown. only a pop up about fetching lyrics and it fetches them - no more than 7 lines :(

I see the solution here, but I never dealt with these files and really don't understand where and how I have to input the new source

Also can't I disable plug in? The only option is uninstall. I have to disable it since it will download all partial lyrics.

I can't uninstall:
Image

Mediamonkey will give me nervous break down soon :D
Never had such trouble with a program. How can it be I can't even uninstall a simple addon? Installing can be tricky, but uninstalling...

I really need help, can't use the player till this is fixed as songs will get bad lyrics

Re: Lyrics Fetcher

Post by ACDias » Thu Feb 20, 2014 8:59 pm

Great idea man. I'll put both options: XPath or this pattern... It will sure be more user friendly than XPath...
And the XPath way its not working on Terra anymore :-/

Re: Lyrics Fetcher

Post by zuilserip » Thu Feb 20, 2014 11:40 am

ACDias wrote:oh... and I know XPath is not user friendly :/
but i can't imagine any other way to get the lyrics from the website... if you have some idea to give, it will be very welcome :)


Hi ACDias - first of all, thank you a ton for developing this script as well as to thehammer and his predecessors that have also put in a bunch of hard work to create Lyricator. These are some of my most used scripts!

You asked for some ideas on getting the lyrics from web sites, so here is (a potentially naive) one.

You already have a way to define the URL of the site where the lyrics are located (e.g., http://letras.terra.com.br/winamp.php?artista={artist}&musica={song})
Would it be possible for you to also let the users define a set of site specific <before> and <after> strings and have your script return anything in between those as the lyrics?

So, for example, for letras.terra.com.br, it looks like the lyrics start at the first "<p>" and end at the first "</p>" after that.

Other examples:
- For elyrics: lyrics between <div id='loading'></div> and <br><br><p><em>
- For lyricsmode.com: lyrics between <p id="lyrics_text" class="ui-annotatable"> and </p>
- For azlyrics: lyrics between <!-- start of lyrics --> and <!-- end of lyrics -->
etc.

It is likely that such simple patterns may not work for all lyrics sites, but it looks like it may work for many. In any event, it should be easy for anyone to browse through their favorite lyrics site hit 'view source' on their browser and quickly determine a <before> and <after> pattern for that site.

Re: Lyrics Fetcher

Post by ACDias » Tue Feb 18, 2014 9:14 pm

oh... and I know XPath is not user friendly :/
but i can't imagine any other way to get the lyrics from the website... if you have some idea to give, it will be very welcome :)

Re: Lyrics Fetcher

Post by ACDias » Tue Feb 18, 2014 9:04 pm

Hi guys... I'm thinking about doing a rework on the program and put new features on it...
So put your suggestions here, because I'll start coding soon :)

Re: Lyrics Fetcher

Post by ACDias » Tue Feb 18, 2014 9:02 pm

Sry. Wrong XPath
put //*[@id="main"]/div[3]

Re: Lyrics Fetcher

Post by Phantomlord2k » Tue Jan 28, 2014 2:09 pm

Adding AZLyrics as shown is not working correctly for me. It's hitting the site, but appears to return the wrong portion of the site. This is what I get:





Submit Corrections
FIVE FINGER DEATH PUNCH Lyrics
A-Z Lyrics




/* Below Lyrics */
(function() {
var opts = {
artist: "FIVE FINGER DEATH PUNCH",
song: "Battleborn",
genre: "",
adunit_id: 39382075,
div_id: "cf_async_" + Math.floor((Math.random() * 999999999))
};
document.write('(div id="'+opts.div_id+'")(/div)');var c=function(){cf.showAsyncAd(opts)};if(window.cf)c();else{cf_async=!0;var
r=document.createElement("script"),s=document.getElementsByTagName("script")[0];r.async=!0;r.src="//srv.tonefuse.com/showads/showad.js";r.onload=c;r.onreadystatechange=function(){"complete"===this.readyState&&c()};s.parentNode.insertBefore(r,s)};

})();

Top