lyrics fetcher: add support for genius.com
This commit is contained in:
1
NEWS
1
NEWS
@@ -4,6 +4,7 @@ ncmpcpp-0.8 (????-??-??)
|
||||
* Support for filtering of lists was brought back from the dead.
|
||||
* Require C++14 compatible compiler during compilation.
|
||||
* Lyrics from files containing DOS line endings now load properly on Linux.
|
||||
* Added support for fetching lyrics from genius.com.
|
||||
|
||||
ncmpcpp-0.7.7 (2016-10-31)
|
||||
* Fixed compilation on 32bit platforms.
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
LyricsFetcher *lyricsPlugins[] =
|
||||
{
|
||||
new LyricwikiFetcher(),
|
||||
new GeniusLyricsFetcher(),
|
||||
new AzLyricsFetcher(),
|
||||
new Sing365Fetcher(),
|
||||
new LyricsmaniaFetcher(),
|
||||
|
||||
@@ -116,6 +116,14 @@ protected:
|
||||
virtual const char *regex() const override { return "<div class=\"lyricsh\">.*?</h2>.*<div>(.*?)</div>"; }
|
||||
};
|
||||
|
||||
struct GeniusLyricsFetcher : public GoogleLyricsFetcher
|
||||
{
|
||||
virtual const char *name() const override { return "genius.com"; }
|
||||
|
||||
protected:
|
||||
virtual const char *regex() const override { return "<lyrics.*?>(.*?)</lyrics>"; }
|
||||
};
|
||||
|
||||
struct InternetLyricsFetcher : public GoogleLyricsFetcher
|
||||
{
|
||||
virtual const char *name() const override { return "the Internet"; }
|
||||
|
||||
Reference in New Issue
Block a user