lyrics fetcher: add support for lyricsvip.com

This commit is contained in:
Andrzej Rybczak
2011-01-23 05:08:29 +01:00
parent cf4ffb2f7b
commit fce3191d28
2 changed files with 11 additions and 0 deletions

View File

@@ -31,6 +31,7 @@
LyricsFetcher *lyricsPlugins[] = LyricsFetcher *lyricsPlugins[] =
{ {
new LyricwikiFetcher(), new LyricwikiFetcher(),
new LyricsvipFetcher(),
new Sing365Fetcher(), new Sing365Fetcher(),
new LyriczzFetcher(), new LyriczzFetcher(),
new SonglyricsFetcher(), new SonglyricsFetcher(),

View File

@@ -160,6 +160,16 @@ struct Sing365Fetcher : public GoogleLyricsFetcher
virtual const char *getCloseTag() { return "<div align"; } virtual const char *getCloseTag() { return "<div align"; }
}; };
struct LyricsvipFetcher : public GoogleLyricsFetcher
{
virtual const char *name() { return "lyricsvip.com"; }
protected:
virtual const char *getSiteKeyword() { return "lyricsvip"; }
virtual const char *getOpenTag() { return "</h2>"; }
virtual const char *getCloseTag() { return "</td>"; }
};
struct InternetLyricsFetcher : public GoogleLyricsFetcher struct InternetLyricsFetcher : public GoogleLyricsFetcher
{ {
virtual const char *name() { return "the Internet"; } virtual const char *name() { return "the Internet"; }