lyrics fetcher: add fetcher for azlyrics.com

This commit is contained in:
Andrzej Rybczak
2013-07-09 00:43:24 +02:00
parent 6d6110a52b
commit d8a838a3f7
2 changed files with 9 additions and 0 deletions

View File

@@ -37,6 +37,7 @@
LyricsFetcher *lyricsPlugins[] = LyricsFetcher *lyricsPlugins[] =
{ {
new LyricwikiFetcher(), new LyricwikiFetcher(),
new AzLyricsFetcher(),
new Sing365Fetcher(), new Sing365Fetcher(),
new LyricsmaniaFetcher(), new LyricsmaniaFetcher(),
new MetrolyricsFetcher(), new MetrolyricsFetcher(),

View File

@@ -111,6 +111,14 @@ protected:
virtual const char *regex() { return "<p class=\"lyrics\">(.*?)</p>"; } virtual const char *regex() { return "<p class=\"lyrics\">(.*?)</p>"; }
}; };
struct AzLyricsFetcher : public GoogleLyricsFetcher
{
virtual const char *name() { return "azlyrics.com"; }
protected:
virtual const char *regex() { return "<!-- start of lyrics -->(.*?)<!-- end of lyrics -->"; }
};
struct InternetLyricsFetcher : public GoogleLyricsFetcher struct InternetLyricsFetcher : public GoogleLyricsFetcher
{ {
virtual const char *name() { return "the Internet"; } virtual const char *name() { return "the Internet"; }