lyrics fetcher: add fetcher for azlyrics.com
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
LyricsFetcher *lyricsPlugins[] =
|
||||
{
|
||||
new LyricwikiFetcher(),
|
||||
new AzLyricsFetcher(),
|
||||
new Sing365Fetcher(),
|
||||
new LyricsmaniaFetcher(),
|
||||
new MetrolyricsFetcher(),
|
||||
|
||||
@@ -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"; }
|
||||
|
||||
Reference in New Issue
Block a user