diff options
author | Andreas Obergrusberger <tradiaz@yahoo.de> | 2007-02-01 21:06:33 +0000 |
---|---|---|
committer | Andreas Obergrusberger <tradiaz@yahoo.de> | 2007-02-01 21:06:33 +0000 |
commit | 0ed1625063f33d2fb9b8bffe9b191a22de0526fa (patch) | |
tree | 9cd07b4d21f80443787a020ec57ea26071cfbad1 /plugins/leoslyrics/lyrics_leoslyrics.c | |
parent | 0058a29551923c8f39c52e75ea7ad97743fa2c05 (diff) | |
download | mpd-0ed1625063f33d2fb9b8bffe9b191a22de0526fa.tar.gz mpd-0ed1625063f33d2fb9b8bffe9b191a22de0526fa.tar.xz mpd-0ed1625063f33d2fb9b8bffe9b191a22de0526fa.zip |
lyrics updates, leoslyrics fixes
git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@5314 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | plugins/leoslyrics/lyrics_leoslyrics.c | 3 |
1 files changed, 1 insertions, 2 deletions
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 |