Add alternative URL for program update checking

The alternative URL is hosted on GitHub and users are able to access it:
https://github.com/qbittorrent/qBittorrent/issues/23000#issuecomment-3092538814
https://github.com/qbittorrent/qBittorrent/issues/23009#issuecomment-3093201180

Also, disguise the user agent as a normal browser to avoid standing out from the crowd and
avoid whatever issues from CDN. This only applies to non-fosshub URLs.

Closes #23000.
Closes #23009.
PR #23014.
This commit is contained in:
Chocobo1
2025-07-22 14:56:42 +08:00
committed by Vladimir Golovnev (Glassez)
parent 3fa812ced6
commit 18fb9936f0
3 changed files with 79 additions and 34 deletions

View File

@@ -1660,7 +1660,7 @@ void MainWindow::handleUpdateCheckFinished(ProgramUpdater *updater, const bool i
updater->deleteLater();
};
const auto newVersion = updater->getNewVersion();
const ProgramUpdater::Version newVersion = updater->getNewVersion();
if (newVersion.isValid())
{
const QString msg {tr("A new version is available.") + u"<br/>"