Add support for fetching lyrics from jah-lyrics.com and plyrics.com

This commit is contained in:
Andrzej Rybczak
2017-01-28 20:41:17 +01:00
parent 5deb6600d4
commit 22681df199
7 changed files with 56 additions and 29 deletions

View File

@@ -131,6 +131,22 @@ protected:
virtual const char *regex() const override { return "<lyrics.*?>(.*?)</lyrics>"; }
};
struct JahLyricsFetcher : public GoogleLyricsFetcher
{
virtual const char *name() const override { return "jah-lyrics.com"; }
protected:
virtual const char *regex() const override { return "<div class=\"song-header\">.*?</div>(.*?)<p class=\"disclaimer\">"; }
};
struct PLyricsFetcher : public GoogleLyricsFetcher
{
virtual const char *name() const override { return "plyrics.com"; }
protected:
virtual const char *regex() const override { return "<!-- start of lyrics -->(.*?)<!-- end of lyrics -->"; }
};
struct TekstowoFetcher : public GoogleLyricsFetcher
{
virtual const char *name() const override { return "tekstowo.pl"; }