GNOME Bugzilla – Bug 619247
TerraParser does not catch all HTML entities
Last modified: 2010-07-07 23:07:50 UTC
The TerraParser does not change the string "'" (an apostrophe) when fetching lyrics. I have not encountered this bug for any other characters, however they are not very common in lyrics! To reproduce this: 1) Enable only the TerraBrazil source in the lyric plugin and play a song with an apostrophe somewhere. 2)Observe that the string "'" appears where one expects an apostrophe. Note that this does not happen for, say, the AstraWeb parser (this is the only other source I could find to return lyrics).
Sorry, this was using Rhythmbox 0.12.8 on F13beta.
Created attachment 162159 [details] [review] Fix for bug
I have found the source of this bug. The file TerraParser.py requires a small correction to the compile code on line 39. The line should instead be pattern = re.compile("&(#?\w+?);") I have also attached a modified version of the file that works for me.
Hi David, Thanks for looking into this. I've committed your suggested change. When you've identified a specific change that fixes a problem, it's best to provide the change as a diff between the current version of the file and your fixed version. So, you'd keep an unmodified copy of TerraParser.py (named TerraParser.py.old or something), make your changes, then run 'diff -u TerraParser.py.old TerraParser.py' and attach the output here.
*** Bug 621344 has been marked as a duplicate of this bug. ***
*** Bug 621700 has been marked as a duplicate of this bug. ***
*** Bug 623762 has been marked as a duplicate of this bug. ***
*** Bug 623793 has been marked as a duplicate of this bug. ***