From b323f2d7aae98503d669a34e0e13abf113410087 Mon Sep 17 00:00:00 2001 From: Martchus Date: Tue, 20 Aug 2019 22:28:07 +0200 Subject: [PATCH] Use HTTPS for querying YouTube HTTP is no longer supported by YouTube. --- network/youtubedownload.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/network/youtubedownload.cpp b/network/youtubedownload.cpp index 331c46e..ef7c4ef 100644 --- a/network/youtubedownload.cpp +++ b/network/youtubedownload.cpp @@ -31,7 +31,7 @@ YoutubeDownload::YoutubeDownload(const QUrl &url, QObject *parent) * \brief Constructs a new YoutubeDownload for the specified video \a id. */ YoutubeDownload::YoutubeDownload(const QString &id, QObject *parent) - : HttpDownloadWithInfoRequst(QUrl(QStringLiteral("http://www.youtube.com/watch?v=%1").arg(id)), parent) + : HttpDownloadWithInfoRequst(QUrl(QStringLiteral("https://www.youtube.com/watch?v=%1").arg(id)), parent) { } @@ -52,7 +52,7 @@ Download *YoutubeDownload::infoRequestDownload(bool &success, QString &reasonFor } else { setId(videoId); success = true; - return new HttpDownload(QUrl(QStringLiteral("http://www.youtube.com/get_video_info?video_id=%1&asv=3&el=detailpage&hl=en_US").arg(videoId))); + return new HttpDownload(QUrl(QStringLiteral("https://www.youtube.com/get_video_info?video_id=%1&asv=3&el=detailpage&hl=en_US").arg(videoId))); } }