mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-10-03 06:48:36 +09:00
Filter string latest in list of latest versions
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user