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:
parent
d4801c1c54
commit
9246360990
1 changed files with 11 additions and 8 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue