From bec434ef3d550ceee70ca72c9735c74714129424 Mon Sep 17 00:00:00 2001 From: Remy Date: Sun, 21 Aug 2011 15:01:13 -0700 Subject: [PATCH] Lyrics module now handles non-ascii chars --- headphones/lyrics.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/headphones/lyrics.py b/headphones/lyrics.py index b7c7aea7..68d39d44 100644 --- a/headphones/lyrics.py +++ b/headphones/lyrics.py @@ -7,8 +7,8 @@ from headphones import logger def getLyrics(artist, song): - params = { "artist": artist, - "song": song, + params = { "artist": artist.encode('utf-8'), + "song": song.encode('utf-8'), "fmt": 'xml' } @@ -43,7 +43,7 @@ def getLyrics(artist, song): m = re.compile('''
.*?
(.*?)