lyrics fetcher: fix fetchers and improve formatting of lyrics

This commit is contained in:
Andrzej Rybczak
2016-10-30 23:25:51 +01:00
parent a53c574edd
commit 888b6bc1c9
4 changed files with 26 additions and 4 deletions

View File

@@ -108,7 +108,9 @@ struct JustSomeLyricsFetcher : public GoogleLyricsFetcher
virtual const char *name() const OVERRIDE { return "justsomelyrics.com"; }
protected:
virtual const char *regex() const OVERRIDE { return "<div class=\"content.*?</div>(.*?)</div>"; }
virtual const char *regex() const OVERRIDE { return "<div class=\"content.*?</div>\\s*</div>(.*?)<div"; }
virtual void postProcess(std::string &data) const OVERRIDE;
};
struct AzLyricsFetcher : public GoogleLyricsFetcher