lyrics fetcher: fix lyricwiki fetcher
This commit is contained in:
1
NEWS
1
NEWS
@@ -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())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user