Lyrics fetcher: fix metrolyrics.com fetchers

This commit is contained in:
Andrzej Rybczak
2018-03-18 11:07:28 +01:00
parent 1b98dd71e1
commit 557720061d
3 changed files with 8 additions and 3 deletions

View File

@@ -119,7 +119,12 @@ std::vector<std::string> LyricsFetcher::getContent(const char *regex_,
auto first = boost::sregex_iterator(data.begin(), data.end(), rx);
auto last = boost::sregex_iterator();
for (; first != last; ++first)
result.push_back(first->str(1));
{
std::string content;
for (size_t i = 1; i < first->size(); ++i)
content += first->str(i);
result.push_back(std::move(content));
}
return result;
}