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

1
NEWS
View File

@@ -38,6 +38,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)

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