mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 17:59:55 +02:00
Add debug logging for source file retrieval and clean up whitespace
This commit is contained in:
parent
adc8364f3e
commit
b51f209c74
1 changed files with 8 additions and 7 deletions
|
@ -4228,8 +4228,13 @@ if (!class_exists('Video')) {
|
||||||
$site = new Sites($video['sites_id']);
|
$site = new Sites($video['sites_id']);
|
||||||
}
|
}
|
||||||
TimeLogEnd($timeLog1, __LINE__, $timeLog1Limit);
|
TimeLogEnd($timeLog1, __LINE__, $timeLog1Limit);
|
||||||
|
if (!empty($global['debug'])) {
|
||||||
|
_error_log("getSourceFile $filename $type");
|
||||||
|
}
|
||||||
if (!empty($cdn_obj->enable_storage) && $isValidType && $fsize < 20 && (!empty($site) || ($indexMP3Exits || $indexMP4Exits)) && (empty($yptStorage) || $site->getUrl() == 'url/')) {
|
if (!empty($cdn_obj->enable_storage) && $isValidType && $fsize < 20 && (!empty($site) || ($indexMP3Exits || $indexMP4Exits)) && (empty($yptStorage) || $site->getUrl() == 'url/')) {
|
||||||
|
if (!empty($global['debug'])) {
|
||||||
|
_error_log("getSourceFile $filename $type line=" . __LINE__);
|
||||||
|
}
|
||||||
if ($type == ".m3u8") {
|
if ($type == ".m3u8") {
|
||||||
$f = "{$filename}/index{$type}";
|
$f = "{$filename}/index{$type}";
|
||||||
} else if ($indexMP3Exits) {
|
} else if ($indexMP3Exits) {
|
||||||
|
@ -7515,7 +7520,6 @@ if (!class_exists('Video')) {
|
||||||
_error_log("Video::saveImageInVideoLib({$videos_id}, {$imageExt}) could not save in {$path}");
|
_error_log("Video::saveImageInVideoLib({$videos_id}, {$imageExt}) could not save in {$path}");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static function getVideoLibRelativePath($videos_id)
|
static function getVideoLibRelativePath($videos_id)
|
||||||
|
@ -7530,7 +7534,6 @@ if (!class_exists('Video')) {
|
||||||
|
|
||||||
$relativeDir = "videos/{$video['filename']}/images/";
|
$relativeDir = "videos/{$video['filename']}/images/";
|
||||||
return $relativeDir;
|
return $relativeDir;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static function listAllImagesInVideoLib($videos_id)
|
static function listAllImagesInVideoLib($videos_id)
|
||||||
|
@ -7562,8 +7565,6 @@ if (!class_exists('Video')) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $images;
|
return $images;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue