mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Improve
This commit is contained in:
parent
a181a1747d
commit
40a23fef81
1 changed files with 5 additions and 1 deletions
|
@ -20,9 +20,13 @@ foreach ($videos as $value) {
|
|||
$basename = "{$path}{$value['filename']}";
|
||||
echo " {$count}/{$total} Searching {$basename} ".PHP_EOL;
|
||||
$glob = glob("{$basename}*");
|
||||
$totalItems = count($glob);
|
||||
echo "Found total of {$totalItems} items " . PHP_EOL;
|
||||
$dirname = $basename.DIRECTORY_SEPARATOR;
|
||||
$countItems = 0;
|
||||
foreach ($glob as $file) {
|
||||
echo "Process file {$file}" . PHP_EOL;
|
||||
$countItems++;
|
||||
echo "[$countItems/$totalItems] Process file {$file} " . PHP_EOL;
|
||||
if (is_dir($file)) {
|
||||
if(!$isStorage){
|
||||
//echo $file.PHP_EOL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue