[www-doc] [Git][VideoLAN.org/websites][3.0.24] stats: honor SKIP_DB for Mirrorbits requests

Thomas Guillem (@tguillem) gitlab at videolan.org
Tue Sep 22 12:25:40 UTC 2026



Thomas Guillem pushed to branch 3.0.24 at VideoLAN organization / websites


Commits:
cf0c6c2c by Thomas Guillem at 2026-09-22T14:25:16+02:00
stats: honor SKIP_DB for Mirrorbits requests

CI sets SKIP_DB=1, but download statistics still require live requests.
Skip them so transient network failures do not break the build.

- - - - -


1 changed file:

- www.videolan.org/vlc/stats/downloads.php


Changes:

=====================================
www.videolan.org/vlc/stats/downloads.php
=====================================
@@ -603,7 +603,7 @@
         echo "<tr><td class=\"category\" style=\"text-align: left;\"><strong>$key</strong></td>\n";
 
         // <Mirrorbits>
-        if (array_key_exists($key, $table_mirrorbits))
+        if (!skipDatabase() && array_key_exists($key, $table_mirrorbits))
         {
             $ftp_multiplier = 1.029; // Estimation of downloads on our ftp/http directly, based on the stats of the last months (early 2019)
             $platforms = array("Windows", "Macintosh", "Source");



View it on GitLab: https://code.videolan.org/VideoLAN.org/websites/-/commit/cf0c6c2c22ae4509586d7ab453687c0c5cbd4763

-- 
View it on GitLab: https://code.videolan.org/VideoLAN.org/websites/-/commit/cf0c6c2c22ae4509586d7ab453687c0c5cbd4763
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the www-doc mailing list