From 9fabec05f03bbd852571e6d520f497c99a5db9f3 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Tue, 28 May 2019 16:15:09 +0200 Subject: [PATCH] ytparser: fix not supported HTTP Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/b4c0a089464e0ae6885abc170410c51b5fe6c34f Author: Jacek Jendrzej Date: 2019-05-28 (Tue, 28 May 2019) --- src/system/ytparser.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/system/ytparser.cpp b/src/system/ytparser.cpp index 71f68f8a7..a9e898721 100644 --- a/src/system/ytparser.cpp +++ b/src/system/ytparser.cpp @@ -158,7 +158,7 @@ bool cYTFeedParser::getUrl(std::string &url, std::string &answer, CURL *_curl_ha printf("try to get [%s] ...\n", url.c_str()); CURLcode httpres = curl_easy_perform(_curl_handle); - printf("http: res %d size %d\n", httpres, (int)answer.size()); + printf("https: res %d size %d\n", httpres, (int)answer.size()); if (httpres != 0 || answer.empty()) { printf("error: %s\n", cerror); @@ -203,7 +203,7 @@ bool cYTFeedParser::DownloadUrl(std::string &url, std::string &file, CURL *_curl curl_easy_getinfo(_curl_handle, CURLINFO_SIZE_DOWNLOAD, &dsize); fclose(fp); - printf("http: res %d size %g.\n", httpres, dsize); + printf("https: res %d size %g.\n", httpres, dsize); if (httpres != 0) { printf("curl error: %s\n", cerror); @@ -587,7 +587,7 @@ bool cYTFeedParser::ParseVideoInfo(cYTVideoInfo &vinfo, CURL *_curl_handle) estr.push_back("&el=detailpage"); for (unsigned i = 0; i < estr.size(); i++) { - std::string vurl = "http://www.youtube.com/get_video_info?video_id="; + std::string vurl = "https://www.youtube.com/get_video_info?video_id="; vurl += vinfo.id; vurl += estr[i]; vurl += "&ps=default&eurl=&gl=US&hl=en";