add support for fetching lyrics from justsomelyrics.com

master
Andrzej Rybczak 15 years ago
parent 1eb4e3ec85
commit 7b5f98bb75
  1. 1
      src/lyrics_fetcher.cpp
  2. 10
      src/lyrics_fetcher.h

@ -38,6 +38,7 @@ LyricsFetcher *lyricsPlugins[] =
new LyricsmaniaFetcher(),
new LyricstimeFetcher(),
new MetrolyricsFetcher(),
new JustSomeLyricsFetcher(),
new LyrcComArFetcher(),
new InternetLyricsFetcher(),
0

@ -170,6 +170,16 @@ struct LyricsvipFetcher : public GoogleLyricsFetcher
virtual const char *getCloseTag() { return "</td>"; }
};
struct JustSomeLyricsFetcher : public GoogleLyricsFetcher
{
virtual const char *name() { return "justsomelyrics.com"; }
protected:
virtual const char *getSiteKeyword() { return "justsomelyrics"; }
virtual const char *getOpenTag() { return "alt=\"phone\" />\n</div>"; }
virtual const char *getCloseTag() { return "<div class=\"adsdiv\">"; }
};
struct InternetLyricsFetcher : public GoogleLyricsFetcher
{
virtual const char *name() { return "the Internet"; }

Loading…
Cancel
Save