1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00

Update not found image

This commit is contained in:
DanieL 2023-02-10 21:18:14 -03:00
parent d4801c1c54
commit 9246360990

View file

@ -18,6 +18,9 @@ if (preg_match('/videos\/(.*\/)?(.*)_thumbs(V2)?.jpg/', $imageURL, $matches) &&
$jpg = Video::getPathToFile("{$matches[2]}.jpg"); $jpg = Video::getPathToFile("{$matches[2]}.jpg");
if (file_exists($jpg)) { if (file_exists($jpg)) {
$file = $jpg; $file = $jpg;
if(preg_match('/_thumbsV2/', $imageURL)){
convertImageIfNotExists($global['systemRootPath'] . $jpg, $imageURL, $advancedCustom->thumbsWidthPortrait / 2, $advancedCustom->thumbsHeightPortrait / 2, true);
}
$type = 'image/jpg'; $type = 'image/jpg';
//header("HTTP/1.0 404 Not Found"); //header("HTTP/1.0 404 Not Found");
header('Content-Type:' . $type); header('Content-Type:' . $type);