lyrics fetcher: add fetcher for azlyrics.com
This commit is contained in:
@@ -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(),
|
||||||
|
|||||||
@@ -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"; }
|
||||||
|
|||||||
Reference in New Issue
Block a user