mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-01-06 15:04:34 +08:00
Update Python URLs
This commit is contained in:
parent
7d808cfc99
commit
f26a5c3581
@ -251,7 +251,7 @@ PythonInfo Utils::ForeignApps::pythonInfo()
|
|||||||
if (!pyInfo.isValid()) {
|
if (!pyInfo.isValid()) {
|
||||||
#if defined(Q_OS_UNIX)
|
#if defined(Q_OS_UNIX)
|
||||||
// On Unix-Like Systems python2 and python3 should always exist
|
// On Unix-Like Systems python2 and python3 should always exist
|
||||||
// https://legacy.python.org/dev/peps/pep-0394/
|
// https://www.python.org/dev/peps/pep-0394/
|
||||||
if (testPythonInstallation("python3", pyInfo))
|
if (testPythonInstallation("python3", pyInfo))
|
||||||
return pyInfo;
|
return pyInfo;
|
||||||
if (testPythonInstallation("python2", pyInfo))
|
if (testPythonInstallation("python2", pyInfo))
|
||||||
|
@ -2049,7 +2049,7 @@ void MainWindow::installPython()
|
|||||||
setCursor(QCursor(Qt::WaitCursor));
|
setCursor(QCursor(Qt::WaitCursor));
|
||||||
// Download python
|
// Download python
|
||||||
const QString installerURL = ((QSysInfo::windowsVersion() >= QSysInfo::WV_VISTA)
|
const QString installerURL = ((QSysInfo::windowsVersion() >= QSysInfo::WV_VISTA)
|
||||||
? "https://www.python.org/ftp/python/3.5.2/python-3.5.2.exe"
|
? "https://www.python.org/ftp/python/3.6.6/python-3.6.6.exe"
|
||||||
: "https://www.python.org/ftp/python/3.4.4/python-3.4.4.msi");
|
: "https://www.python.org/ftp/python/3.4.4/python-3.4.4.msi");
|
||||||
Net::DownloadHandler *handler = Net::DownloadManager::instance()->download(
|
Net::DownloadHandler *handler = Net::DownloadManager::instance()->download(
|
||||||
Net::DownloadRequest(installerURL).saveToFile(true));
|
Net::DownloadRequest(installerURL).saveToFile(true));
|
||||||
|
Loading…
Reference in New Issue
Block a user