From d9054def50cc2d50d86cf6a2667f60fe8a6f9822 Mon Sep 17 00:00:00 2001 From: Timo Loewe Date: Mon, 5 Dec 2016 14:04:55 +0100 Subject: [PATCH] Remove some more junk in LyricwikiParser --- lLyrics/LyricwikiParser.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lLyrics/LyricwikiParser.py b/lLyrics/LyricwikiParser.py index dd876e7..4c2a841 100755 --- a/lLyrics/LyricwikiParser.py +++ b/lLyrics/LyricwikiParser.py @@ -17,6 +17,8 @@ import string import html +import re + import Util @@ -64,6 +66,10 @@ def get_lyrics(self, resp): resp = html.unescape(resp) resp = resp.replace("
", "\n") resp = resp.replace("
", "\n") + resp = resp.replace("", "") + resp = resp.replace("", "") + resp = re.sub("]*>", "", resp) + resp = resp.replace("", "") resp = resp.strip() return resp