Menu

#94 only first part of lyrics displayed

SVN version
open
nobody
None
5
2014-10-11
2014-04-29
Henne
No

Lyracs are found and fetched, but you only see the title plus the first verse of the lyrics.

Discussion

  • Henne

    Henne - 2014-05-15

    To be more precise, it is the function "ario_lyrics_letras_parse_file", in which the "< / p >" indicates the end of the lyrics, if I got that right. letras must have changed something.

    Now ario only gets the first verse or the part of the lyric which ends with "< / p >". I had a look in the actual html code and think it would be better to end with "

    ".
    Unfortunately the line

    end = strstr (begin, "< div id = \" banner \" >")

    instead of

    end = strstr (begin, "< / p > ")

    causes a segmentation fault on calling "ario_util_convert_from_iso8859".

    Any thoughts?

    Henning

     

    Last edit: Henne 2014-05-15
  • Henne

    Henne - 2014-05-16

    You have to just comment the conversion-to-utf-8 section (I think the file is yet encoded as utf-8 and therefore causes issues).

    I attached the fix for this bug.

     
  • Henne

    Henne - 2014-10-11

    Attached is a more robust patch. Optional is the replacement of the letras domain with http://letras.mus.br/

     

Log in to post a comment.