Fix fetching lyrics from sing365.com and genius.com

This commit is contained in:
Andrzej Rybczak
2017-05-21 16:08:19 +02:00
parent 2362770b66
commit 99107c5b39
2 changed files with 4 additions and 4 deletions

View File

@@ -78,7 +78,7 @@ LyricsFetcher::Result LyricsFetcher::fetch(const std::string &artist,
boost::replace_all(url, "%title%", Curl::escape(title));
std::string data;
CURLcode code = Curl::perform(data, url);
CURLcode code = Curl::perform(data, url, "", true);
if (code != CURLE_OK)
{
@@ -87,7 +87,7 @@ LyricsFetcher::Result LyricsFetcher::fetch(const std::string &artist,
}
auto lyrics = getContent(regex(), data);
if (lyrics.empty() || notLyrics(data))
{
result.second = msgNotFound;