lyrics fetcher: add support for tekstowo.pl
This commit is contained in:
1
NEWS
1
NEWS
@@ -5,6 +5,7 @@ ncmpcpp-0.8 (????-??-??)
|
|||||||
* Require C++14 compatible compiler during compilation.
|
* Require C++14 compatible compiler during compilation.
|
||||||
* Lyrics from files containing DOS line endings now load properly on Linux.
|
* Lyrics from files containing DOS line endings now load properly on Linux.
|
||||||
* Added support for fetching lyrics from genius.com.
|
* Added support for fetching lyrics from genius.com.
|
||||||
|
* Added support for fetching lyrics from tekstowo.pl.
|
||||||
|
|
||||||
ncmpcpp-0.7.7 (2016-10-31)
|
ncmpcpp-0.7.7 (2016-10-31)
|
||||||
* Fixed compilation on 32bit platforms.
|
* Fixed compilation on 32bit platforms.
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ LyricsFetcher *lyricsPlugins[] =
|
|||||||
new LyricsmaniaFetcher(),
|
new LyricsmaniaFetcher(),
|
||||||
new MetrolyricsFetcher(),
|
new MetrolyricsFetcher(),
|
||||||
new JustSomeLyricsFetcher(),
|
new JustSomeLyricsFetcher(),
|
||||||
|
new TekstowoLyricsFetcher(),
|
||||||
new InternetLyricsFetcher(),
|
new InternetLyricsFetcher(),
|
||||||
0
|
0
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -124,6 +124,14 @@ protected:
|
|||||||
virtual const char *regex() const override { return "<lyrics.*?>(.*?)</lyrics>"; }
|
virtual const char *regex() const override { return "<lyrics.*?>(.*?)</lyrics>"; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct TekstowoLyricsFetcher : public GoogleLyricsFetcher
|
||||||
|
{
|
||||||
|
virtual const char *name() const override { return "tekstowo.pl"; }
|
||||||
|
|
||||||
|
protected:
|
||||||
|
virtual const char *regex() const override { return "<div class=\"song-text\">.*?</h2>(.*?)<a"; }
|
||||||
|
};
|
||||||
|
|
||||||
struct InternetLyricsFetcher : public GoogleLyricsFetcher
|
struct InternetLyricsFetcher : public GoogleLyricsFetcher
|
||||||
{
|
{
|
||||||
virtual const char *name() const override { return "the Internet"; }
|
virtual const char *name() const override { return "the Internet"; }
|
||||||
|
|||||||
Reference in New Issue
Block a user