From 0ed1625063f33d2fb9b8bffe9b191a22de0526fa Mon Sep 17 00:00:00 2001 From: Andreas Obergrusberger Date: Thu, 1 Feb 2007 21:06:33 +0000 Subject: lyrics updates, leoslyrics fixes git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@5314 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- plugins/leoslyrics/lyrics_leoslyrics.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/leoslyrics') diff --git a/plugins/leoslyrics/lyrics_leoslyrics.c b/plugins/leoslyrics/lyrics_leoslyrics.c index 47aabe10b..a62e47f05 100644 --- a/plugins/leoslyrics/lyrics_leoslyrics.c +++ b/plugins/leoslyrics/lyrics_leoslyrics.c @@ -82,6 +82,7 @@ static void fetch_text(void *userData, const XML_Char *s, int len) { if(result & 16) { + if (s[0] == 13 ) return; //ignore any single carriage returns add_text_line(&lyr_text, s, len); } } @@ -146,7 +147,6 @@ int get_lyr_leoslyrics(char *artist, char *title) return 0; } -#if SRC_LYR_LEOSLYRICS == plugin int register_me (src_lyr *source_descriptor) { source_descriptor->check_lyr = check_lyr_leoslyrics; @@ -155,4 +155,3 @@ int register_me (src_lyr *source_descriptor) source_descriptor->name = "Leoslyrics"; source_descriptor->description = "powered by http://www.leoslyrics.com"; } -#endif -- cgit v1.2.3