From fa298428d925939f8d8d7c5a60c644d5131e171b Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sat, 26 Nov 2011 02:04:01 +0100 Subject: [PATCH] lyrics fetcher: add support for lololyrics.com --- src/lyrics_fetcher.cpp | 1 + src/lyrics_fetcher.h | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/src/lyrics_fetcher.cpp b/src/lyrics_fetcher.cpp index 4cda566d..8bfed6aa 100644 --- a/src/lyrics_fetcher.cpp +++ b/src/lyrics_fetcher.cpp @@ -33,6 +33,7 @@ LyricsFetcher *lyricsPlugins[] = new LyricwikiFetcher(), new LyricsvipFetcher(), new Sing365Fetcher(), + new LoloLyricsFetcher(), new LyriczzFetcher(), new SonglyricsFetcher(), new LyricsmaniaFetcher(), diff --git a/src/lyrics_fetcher.h b/src/lyrics_fetcher.h index 789864c5..99f0e4e5 100644 --- a/src/lyrics_fetcher.h +++ b/src/lyrics_fetcher.h @@ -180,6 +180,16 @@ struct JustSomeLyricsFetcher : public GoogleLyricsFetcher virtual const char *getCloseTag() { return "
"; } }; +struct LoloLyricsFetcher : public GoogleLyricsFetcher +{ + virtual const char *name() { return "lololyrics.com"; } + + protected: + virtual const char *getSiteKeyword() { return "lololyrics"; } + virtual const char *getOpenTag() { return "
"; } + virtual const char *getCloseTag() { return "
"; } +}; + struct InternetLyricsFetcher : public GoogleLyricsFetcher { virtual const char *name() { return "the Internet"; }