Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Dec 12, 2024
1 parent 531bd3d commit 1754788
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions objects/video.php
Original file line number Diff line number Diff line change
Expand Up @@ -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}";
}
Expand All @@ -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);
Expand All @@ -4187,13 +4192,19 @@ 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}";
$source['url_noCDN'] = "{$global['webSiteRootURL']}{$paths['relative']}{$filename}{$type}";
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);
Expand Down

0 comments on commit 1754788

Please sign in to comment.