lyrics fetcher: update regexes for a few sites

This commit is contained in:
Andrzej Rybczak
2015-06-21 14:46:45 +02:00
parent b0a8ec1525
commit 756327492d
2 changed files with 4 additions and 3 deletions

View File

@@ -98,7 +98,7 @@ struct Sing365Fetcher : public GoogleLyricsFetcher
virtual const char *name() { return "sing365.com"; }
protected:
virtual const char *regex() { return "<script src=\"//srv.tonefuse.com/showads/showad.js\"></script>(.*?)<script>\n/\\* Sing365 - Below Lyrics"; }
virtual const char *regex() { return "<!-Lyrics Begin->(.*?)<!-Lyrics End->"; }
virtual void postProcess(std::string &data);
};
@@ -108,7 +108,7 @@ struct JustSomeLyricsFetcher : public GoogleLyricsFetcher
virtual const char *name() { return "justsomelyrics.com"; }
protected:
virtual const char *regex() { return "<div class=\"core-left\">(.*?)</div>"; }
virtual const char *regex() { return "<div class=\"content.*?</div>(.*?)</div>"; }
};
struct AzLyricsFetcher : public GoogleLyricsFetcher
@@ -116,7 +116,7 @@ struct AzLyricsFetcher : public GoogleLyricsFetcher
virtual const char *name() { return "azlyrics.com"; }
protected:
virtual const char *regex() { return "<!-- start of lyrics -->(.*?)<!-- end of lyrics -->"; }
virtual const char *regex() { return "<div class=\"lyricsh\">.*?</h2>.*<div>(.*?)</div>"; }
};
struct InternetLyricsFetcher : public GoogleLyricsFetcher