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:
parent
34abc69490
commit
531bd3d705
3 changed files with 19 additions and 5 deletions
|
@ -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)");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue