lyrics fetcher: update regexes for a few sites

master
Andrzej Rybczak 11 years ago
parent 16d65ea36a
commit f66f7fa129
  1. 1
      NEWS
  2. 6
      src/lyrics_fetcher.h

@ -8,6 +8,7 @@ ncmpcpp-0.6.5 (????-??-??)
* Possible access of already freed memory when downloading artist info is fixed.
* Name of an item is now displayed correctly if present.
* Assertion failure when resizing terminal window with no active MPD connection is fixed.
* Lyrics fetchers were updated to work with sites that changed their HTML structure.
ncmpcpp-0.6.4 (2015-05-02)

@ -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

Loading…
Cancel
Save