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

@@ -111,6 +111,14 @@ protected:
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
{
virtual const char *name() { return "the Internet"; }