diff --git a/NEWS b/NEWS index df5bb5c8..1bb447f6 100644 --- a/NEWS +++ b/NEWS @@ -32,6 +32,9 @@ ncmpcpp-0.7 (????-??-??) * Output of the visualizer now scales automatically as long as 'visualizer_sample_multiplier' is set to 1. * Command line switch that prints current song to the standard output is available once again. +ncmpcpp-0.6.7 (2015-09-12) +* Fetching artist info from last.fm was fixed. + ncmpcpp-0.6.6 (2015-09-07) * A typo in the example configuration file was fixed. * Fetching lyrics from lyricwiki.com was fixed. diff --git a/src/lastfm_service.cpp b/src/lastfm_service.cpp index 24749575..6c19fc60 100644 --- a/src/lastfm_service.cpp +++ b/src/lastfm_service.cpp @@ -116,9 +116,11 @@ Service::Result ArtistInfo::processData(const std::string &data) rx.assign("(.*?)"); + rx.assign("
") == 0 || s.compare(i, j-i, "
") == 0) + s.replace(i, j-i, "\n"); + else + s.replace(i, j-i, ""); } - boost::replace_all(s, "'", "'"); - boost::replace_all(s, "&", "&"); - boost::replace_all(s, """, "\""); - boost::replace_all(s, " ", " "); + unescapeHtmlEntities(s); for (size_t i = 0; i < s.length(); ++i) { if (erase) diff --git a/src/utility/html.h b/src/utility/html.h index cde06ba1..9a98a4a2 100644 --- a/src/utility/html.h +++ b/src/utility/html.h @@ -24,7 +24,7 @@ #include