From 1754788d9eb1cf8f8782af3edf0c3def0c5a8bc3 Mon Sep 17 00:00:00 2001 From: Daniel Neto Date: Thu, 12 Dec 2024 14:18:18 -0300 Subject: [PATCH] Update --- objects/video.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/objects/video.php b/objects/video.php index d0a5468c95ab..cd0e2c278576 100644 --- a/objects/video.php +++ b/objects/video.php @@ -4163,6 +4163,8 @@ public static function getSourceFile($filename, $type = ".jpg", $includeS3 = fal $f = "{$filename}/index{$type}"; } else if ($indexMP3Exits) { $f = "{$filename}/index{$type}"; + } else if ($indexMP4Exits) { + $f = "{$filename}/index{$type}"; } else { $f = "{$paths['relative']}{$filename}{$type}"; } @@ -4179,6 +4181,9 @@ public static function getSourceFile($filename, $type = ".jpg", $includeS3 = fal if ($type == ".m3u8" || $indexMP3Exits) { $source['url'] = "{$siteURL}videos/{$filename}/index{$type}"; $source['url_noCDN'] = "{$global['webSiteRootURL']}videos/{$filename}/index{$type}"; + }else if ($indexMP4Exits) { + $source['url'] = "{$siteURL}videos/{$filename}/index{$type}"; + $source['url_noCDN'] = "{$global['webSiteRootURL']}videos/{$filename}/index{$type}"; } } elseif (!empty($advancedCustom->videosCDN) && $canUseCDN) { $advancedCustom->videosCDN = addLastSlash($advancedCustom->videosCDN); @@ -4187,6 +4192,9 @@ public static function getSourceFile($filename, $type = ".jpg", $includeS3 = fal if ($type == ".m3u8" || $indexMP3Exits) { $source['url'] = "{$advancedCustom->videosCDN}videos/{$filename}/index{$type}"; $source['url_noCDN'] = "{$global['webSiteRootURL']}videos/{$filename}/index{$type}"; + }else if ($indexMP4Exits) { + $source['url'] = "{$advancedCustom->videosCDN}videos/{$filename}/index{$type}"; + $source['url_noCDN'] = "{$global['webSiteRootURL']}videos/{$filename}/index{$type}"; } } else { $source['url'] = getCDN() . "{$paths['relative']}{$filename}{$type}"; @@ -4194,6 +4202,9 @@ public static function getSourceFile($filename, $type = ".jpg", $includeS3 = fal if ($type == ".m3u8" || $indexMP3Exits) { $source['url'] = getCDN() . "videos/{$filename}/index{$type}"; $source['url_noCDN'] = "{$global['webSiteRootURL']}videos/{$filename}/index{$type}"; + }else if ($indexMP4Exits) { + $source['url'] = getCDN() . "videos/{$filename}/index{$type}"; + $source['url_noCDN'] = "{$global['webSiteRootURL']}videos/{$filename}/index{$type}"; } } TimeLogEnd($timeLog1, __LINE__, $timeLog1Limit);