mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-01 02:37:25 +01:00
fixes
This commit is contained in:
parent
83f5182bcf
commit
71c8858fcd
@ -12,7 +12,7 @@
|
|||||||
<?php
|
<?php
|
||||||
$DOWNLOAD_DIR = 'downloads';
|
$DOWNLOAD_DIR = 'downloads';
|
||||||
|
|
||||||
$versions = array_filter(function($v) {return $v{0} != '.';}, scandir($DOWNLOAD_DIR));
|
$versions = array_filter(scandir($DOWNLOAD_DIR), function($v) {return $v{0} != '.';});
|
||||||
sort($versions);
|
sort($versions);
|
||||||
|
|
||||||
$latest = end($versions);
|
$latest = end($versions);
|
||||||
@ -21,12 +21,12 @@ echo '<div class="latest">';
|
|||||||
echo '<div>Latest (v' . htmlspecialchars($latest) . ') downloads:</div>';
|
echo '<div>Latest (v' . htmlspecialchars($latest) . ') downloads:</div>';
|
||||||
echo '<a href="downloads/' . htmlspecialchars($latest) . '/youtube-dl">youtube-dl</a> ';
|
echo '<a href="downloads/' . htmlspecialchars($latest) . '/youtube-dl">youtube-dl</a> ';
|
||||||
echo '<a href="downloads/' . htmlspecialchars($latest) . '/youtube-dl.exe">youtube-dl.exe</a> ';
|
echo '<a href="downloads/' . htmlspecialchars($latest) . '/youtube-dl.exe">youtube-dl.exe</a> ';
|
||||||
echo '<a href="downloads/' . htmlspecialchars($latest) . '/youtube-dl-src-' . htmlspecialchars($latest) . '.tar.gz">youtube-dl-src-' . htmlspecialchars($latest) . '.tar.gz</a>';
|
echo '<a href="downloads/' . htmlspecialchars($latest) . '/youtube-dl-' . htmlspecialchars($latest) . '.tar.gz">youtube-dl-' . htmlspecialchars($latest) . '.tar.gz</a>';
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
echo '<ul>';
|
echo '<ul>';
|
||||||
foreach ($versions as $v) {
|
foreach ($versions as $version) {
|
||||||
echo '<li><a href="' . htmlspecialchars($version) . '">' . htmlspecialchars($version) . '</a></li>';
|
echo '<li><a href="downloads/' . htmlspecialchars($version) . '">' . htmlspecialchars($version) . '</a></li>';
|
||||||
}
|
}
|
||||||
echo '</ul>';
|
echo '</ul>';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user