1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 19:42:38 +02:00

Updates to locate the converted index,mp4

This commit is contained in:
Daniel Neto 2024-12-12 14:03:38 -03:00
parent 34abc69490
commit 531bd3d705
3 changed files with 19 additions and 5 deletions

View file

@ -807,10 +807,10 @@ function globVideosDir($filename, $filesOnly = false, $recreateCache = false)
$cleanfilename = '';
}
$pattern = "/{$cleanfilename}.*";
$pattern = "/({$cleanfilename}|index).*";
if (!empty($filesOnly)) {
$formats = getValidFormats();
$pattern .= ".(" . implode("|", $formats) . ")";
$pattern .= ".(" . implode("|", $formats) . ")$";
}
$pattern .= "/";
//_error_log("_glob($dir, $pattern)");