Fix Genius and Tekstowo fetchers

master
Andrzej Rybczak 5 years ago
parent 60b8071eea
commit ecc2fefa7c
  1. 4
      src/lyrics_fetcher.h

@ -116,7 +116,7 @@ struct GeniusFetcher : public GoogleLyricsFetcher
virtual const char *name() const override { return "genius.com"; } virtual const char *name() const override { return "genius.com"; }
protected: protected:
virtual const char *regex() const override { return "<div class=\"lyrics\">(.*?)</div>"; } virtual const char *regex() const override { return "<div class=\"Lyrics__Container.*?\">(.*?)</div>"; }
}; };
struct JahLyricsFetcher : public GoogleLyricsFetcher struct JahLyricsFetcher : public GoogleLyricsFetcher
@ -140,7 +140,7 @@ struct TekstowoFetcher : public GoogleLyricsFetcher
virtual const char *name() const override { return "tekstowo.pl"; } virtual const char *name() const override { return "tekstowo.pl"; }
protected: protected:
virtual const char *regex() const override { return "<div class=\"song-text\">.*?</h2>(.*?)<a"; } virtual const char *regex() const override { return "<div class=\"song-text\".*?>.*?</h2>(.*?)<a"; }
}; };
struct ZeneszovegFetcher : public GoogleLyricsFetcher struct ZeneszovegFetcher : public GoogleLyricsFetcher

Loading…
Cancel
Save