1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00

Improving the videos directory location

This commit is contained in:
DanielnetoDotCom 2021-01-04 16:24:45 -03:00
parent 822a494387
commit 551379436d
26 changed files with 70 additions and 59 deletions

View file

@ -21,7 +21,7 @@ foreach ($videos as $value) {
echo "\nStart: " . $value['title'];
ob_flush();
$videoFileName = $value['filename'];
$destination = "{$global['systemRootPath']}videos/{$videoFileName}.webp";
$destination = Video::getStoragePath()."{$videoFileName}.webp";
if (!file_exists($destination)) {
echo "\nGet webp";
ob_flush();