diff --git a/NEWS b/NEWS index 823b3bce..11772a4e 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,7 @@ ncmpcpp-0.8 (????-??-??) * 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. +* Added support for fetching lyrics from tekstowo.pl. ncmpcpp-0.7.7 (2016-10-31) * Fixed compilation on 32bit platforms. diff --git a/src/lyrics_fetcher.cpp b/src/lyrics_fetcher.cpp index 4f0702d7..89f79851 100644 --- a/src/lyrics_fetcher.cpp +++ b/src/lyrics_fetcher.cpp @@ -45,6 +45,7 @@ LyricsFetcher *lyricsPlugins[] = new LyricsmaniaFetcher(), new MetrolyricsFetcher(), new JustSomeLyricsFetcher(), + new TekstowoLyricsFetcher(), new InternetLyricsFetcher(), 0 }; diff --git a/src/lyrics_fetcher.h b/src/lyrics_fetcher.h index 9286b429..c50ce360 100644 --- a/src/lyrics_fetcher.h +++ b/src/lyrics_fetcher.h @@ -124,6 +124,14 @@ protected: virtual const char *regex() const override { return "(.*?)"; } }; +struct TekstowoLyricsFetcher : public GoogleLyricsFetcher +{ + virtual const char *name() const override { return "tekstowo.pl"; } + +protected: + virtual const char *regex() const override { return "
.*?(.*?)