Lyrics fetcher: fix metrolyrics.com fetchers

This commit is contained in:
Andrzej Rybczak
2018-03-18 11:07:28 +01:00
parent 1b98dd71e1
commit 557720061d
3 changed files with 8 additions and 3 deletions

View File

@@ -88,7 +88,7 @@ struct MetrolyricsFetcher : public GoogleLyricsFetcher
virtual const char *name() const override { return "metrolyrics.com"; }
protected:
virtual const char *regex() const override { return "<div class=\"lyrics-body\">(.*?)</div>"; }
virtual const char *regex() const override { return "<div class=\"lyrics-body\">(.*?)<!--WIDGET.*?<!-- Second Section -->(.*?)<!--WIDGET.*?<!-- Third Section -->(.*?)</div>"; }
virtual bool isURLOk(const std::string &url) override;
};