1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-22 08:47:41 +00:00

Filter string latest in list of latest versions

This commit is contained in:
Philipp Hagemeister 2014-06-01 10:27:01 +02:00
parent 644f92f6a5
commit 52f8db8b79

View file

@ -12,7 +12,7 @@
<?php
$DOWNLOAD_DIR = 'downloads';
$versions = array_filter(scandir($DOWNLOAD_DIR), function($v) {return $v{0} != '.';});
$versions = array_filter(scandir($DOWNLOAD_DIR), function($v) {return (($v{0} != '.') && ($v != 'latest'));});
sort($versions);
$latest = end($versions);