Re: [Rhythmbox-devel] Little patch for TerraLyrics parser
- From: Hardy Beltran <hardybm gmail com>
- To: Matias Gea <matigea gmail com>
- Cc: rhythmbox-devel gnome org
- Subject: Re: [Rhythmbox-devel] Little patch for TerraLyrics parser
- Date: Wed, 16 Feb 2011 15:29:02 -0400
On Tue, Feb 15, 2011 at 6:20 PM, Matias Gea <matigea gmail com> wrote:
> Hi.
>
> I found very annoying that the lyrics fetched from Terra.br were
> terribly formatted, so I modified TerraParser.py to delete those
> annoying white spaces (actually, tabs) and line breaks before and
> after the title and artist. Here is the patch code (for version 0.13.1
> of Rhythmbox):
>
> 103,105d102
> < rx = re.compile('^(\t|\n)+',re.M | re.S)
> < artistitle = rx.sub('', artistitle)
> <
> 110c107
> < lyrics = unescape_entities(artistitle) + "\n" + unescape_entities(lyrics)
> ---
>> lyrics = unescape_entities(artistitle) + unescape_entities(lyrics)
Wonderful !
I will take your patch and submit by the usual way
Thank you Matias !
--
Hardy Beltran Monasterios
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]