lyrics fetcher: add support for genius.com

This commit is contained in:
Andrzej Rybczak committed 2016-11-16 06:21:36 +01:00
1 parent dac0d4602f
commit 308c2be2f6
3 files changed
+10

No files matched your search

+1
View File
@@ -39,6 +39,7 @@
LyricsFetcher *lyricsPlugins[] =
{
new LyricwikiFetcher(),
new GeniusLyricsFetcher(),
new AzLyricsFetcher(),
new Sing365Fetcher(),
new LyricsmaniaFetcher(),
+8
View File
@@ -116,6 +116,14 @@ protected:
virtual const char *regex() const override { return "<div class=\"lyricsh\">.*?</h2>.*<div>(.*?)</div>"; }
};
struct GeniusLyricsFetcher : public GoogleLyricsFetcher
{
virtual const char *name() const override { return "genius.com"; }
protected:
virtual const char *regex() const override { return "<lyrics.*?>(.*?)</lyrics>"; }
};
struct InternetLyricsFetcher : public GoogleLyricsFetcher
{
virtual const char *name() const override { return "the Internet"; }