Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - cesargcomp

1
Two things that could help us:
1) a button to save the lyrics in the webcontext plugin > lyrics
2) I use the desktop widget and I would like to see the lyrics of the webcontext plugin > lyrics because lyricsplugin it works well.

is it possible?
2
I got it ... Using Google. A redirection to the website of letras.terra.com.br.

Put the following lines to file [a] lyrics.pm [/ u]:

   google   =>   ['google','http://www.google.com/search?btnI=I%27m+Feeling+Lucky&hl=pt-BR&ie=UTF-8&sourceid=navclient&gfns=1&q=%s+%a+site%3Aletras.terra.com.br',undef,
             sub { my $no= $_[0]=~m/site:letras.terra.com.br/s; $_[0]=~s!^.*.id="main_cnt">(.*?)id="pub_9">.*$!$1!s && !$no; }],

Test and tell me if it worked.

PS: I corrected a few lines of translation and resent.
3
some examples:
words with "ç", "ã", "É", "ó", "á", "í", ...
Directly from the site is perfect. In the lyrics plugin appears "?" to replace those letters.

http://letras.terra.com.br/jota-quest/305574/
http://letras.terra.com.br/jota-quest/312141/
http://letras.terra.com.br/jota-quest/68366/

PS: I used the following lines within the file lyrics.pm.
   letras_terra   =>   ['letras_terra','http://letras.terra.com.br/winamp.php?musica=%s&artista=%a',undef,
             sub { my $no= $_[0]=~m/href="envie_artista.php"/s; $_[0]=~s!^.*.<p>(.*?)</p>.*$!$1!s && !$no; }],

Is this correct or should I change it?
4
I sent you the translation - Portuguese (Brazil). In the email, talked about the url letras.com.br using encoding iso-8859-1. The lyrics plugin uses utf-8 (if I remember correctly). Is there any solution? The letter appears in the plugin but there are some characters that have problems.

lyricsplugin.com works perfectly in webcontext. Why?
What is the difference between the plugin Lyrics and the plugin Webcontext/Lyrics ?

Congratulations! The player is very good.