Bug in the Lyrics plugin (solved by me)

Dave A. <[email protected]>
Newsgroups gmane.comp.gnome.apps.rhythmbox.devel
Message-ID <[email protected]>
Hello there:
When I search lyrics using the plugin it show
&#039;
instead of 
'
For example:
It&#039;s fantastic
instead of
It's fantastic
I fixed this problem by editing the plugin. For example, in TerraParser.py I changed
		lyrics = unescape_entities(artistitle) + unescape_entities(lyrics)		lyrics += ...
for
		lyrics = unescape_entities(artistitle) + "\n" + unescape_entities(lyrics)#Modificacion para convertir las tildes. Cambiar "&#039;" por "'"		lyrics = lyrics.replace("&#039;", "'")		lyrics += ...

It replaces the character sequence and the lyrics are now fine :)

Besides, I added "\n" between unescape_entities(artistitle) and  unescape_entities(lyrics) in order to show the first line of the lyric aligned with the others.
You can make this modifications permanent for the next version of  Rhytmbox.

_______________________________________________
rhythmbox-devel mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/rhythmbox-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.