lyrics fetcher: add support for genius.com

This commit is contained in:
Andrzej Rybczak
2016-11-16 06:20:05 +01:00
parent dac0d4602f
commit 308c2be2f6
3 changed files with 10 additions and 0 deletions

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"; }