Fix the redirect loop on flash fallback for osx

parent aca7a37c
......@@ -123,6 +123,11 @@ void MainWin::httpResponseFinished(QNetworkReply * reply)
QString urlstr = yt->url().toString();
std::cout << "NO HTML5 FOR THIS YOUTUBE VIDEO " << urlstr.toStdString() << std::endl;
std::cout << "Reopen with " << urlstr.remove("html5=1&").toStdString() << std::endl;
yt->stop();
// connect(nam, SIGNAL(finished(QNetworkReply *)), this, SLOT(httpResponseFinished(QNetworkReply *)));
disconnect(yt->page()->networkAccessManager(), &ReferredNetworkAccessManager::finished, this, &MainWin::httpResponseFinished);
yt->load(QUrl(urlstr.remove("html5=1&")));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment