curl: fix fetching artist info from last.fm
This commit is contained in:
1
NEWS
1
NEWS
@@ -1,5 +1,6 @@
|
|||||||
ncmpcpp-0.7.5 (????-??-??)
|
ncmpcpp-0.7.5 (????-??-??)
|
||||||
* Action chains can be now used for seeking.
|
* Action chains can be now used for seeking.
|
||||||
|
* Fixed fetching artist info from last.fm.
|
||||||
|
|
||||||
ncmpcpp 0.7.4 (2016-04-17)
|
ncmpcpp 0.7.4 (2016-04-17)
|
||||||
* Fetching lyrics from lyricwiki.org was fixed.
|
* Fetching lyrics from lyricwiki.org was fixed.
|
||||||
|
|||||||
@@ -44,6 +44,8 @@ CURLcode Curl::perform(std::string &data, const std::string &URL, const std::str
|
|||||||
curl_easy_setopt(c, CURLOPT_WRITEDATA, &data);
|
curl_easy_setopt(c, CURLOPT_WRITEDATA, &data);
|
||||||
curl_easy_setopt(c, CURLOPT_CONNECTTIMEOUT, timeout);
|
curl_easy_setopt(c, CURLOPT_CONNECTTIMEOUT, timeout);
|
||||||
curl_easy_setopt(c, CURLOPT_NOSIGNAL, 1);
|
curl_easy_setopt(c, CURLOPT_NOSIGNAL, 1);
|
||||||
|
// Workaround last.fm SSL certificate problems.
|
||||||
|
curl_easy_setopt(c, CURLOPT_SSL_VERIFYHOST, 0);
|
||||||
curl_easy_setopt(c, CURLOPT_USERAGENT, "ncmpcpp " VERSION);
|
curl_easy_setopt(c, CURLOPT_USERAGENT, "ncmpcpp " VERSION);
|
||||||
if (follow_redirect)
|
if (follow_redirect)
|
||||||
curl_easy_setopt(c, CURLOPT_FOLLOWLOCATION, 1L);
|
curl_easy_setopt(c, CURLOPT_FOLLOWLOCATION, 1L);
|
||||||
|
|||||||
Reference in New Issue
Block a user