lyrics fetcher: fix lyricwiki fetcher

master
Andrzej Rybczak 10 years ago
parent e8ad870787
commit 62f70e7bec
  1. 1
      NEWS
  2. 2
      src/lyrics_fetcher.cpp

@ -1,4 +1,5 @@
ncmpcpp 0.7.4 (????-??-??) ncmpcpp 0.7.4 (????-??-??)
* Fetching lyrics from lyricwiki.org was fixed.
ncmpcpp 0.7.3 (2016-01-20) ncmpcpp 0.7.3 (2016-01-20)
* Home and End keys are now recognized in a few specific terminal emulators. * Home and End keys are now recognized in a few specific terminal emulators.

@ -126,7 +126,7 @@ LyricsFetcher::Result LyricwikiFetcher::fetch(const std::string &artist, const s
return result; return result;
} }
auto lyrics = getContent("<div class='lyricbox'><script>.*?</script>(.*?)<!--", data); auto lyrics = getContent("<div class='lyricbox'>(.*?)<!--", data);
if (lyrics.empty()) if (lyrics.empty())
{ {

Loading…
Cancel
Save