Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Feb 12, 2025
1 parent 7b99757 commit 0b8ed92
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 0 additions & 5 deletions objects/video.php
Original file line number Diff line number Diff line change
Expand Up @@ -4236,14 +4236,9 @@ public static function getSourceFile($filename, $type = ".jpg", $includeS3 = fal
//var_dump("{$filename}/index.mp4");
$source['url'] = CDNStorage::getURL("{$filename}/index.mp4");
$source['line'] = __LINE__;
$source['filename'] = $filename;
$source['type'] = $type;
} else {
$source['url'] = CDNStorage::getURL("{$filename}{$type}");
$source['line'] = __LINE__;
$source['indexMP4Exits'] = $indexMP4Exits;
$source['filename'] = $filename;
$source['type'] = $type;
}
$source['url_noCDN'] = $source['url'];
TimeLogEnd($timeLog1, __LINE__, $timeLog1Limit);
Expand Down
6 changes: 5 additions & 1 deletion plugin/CDN/Storage/CDNStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -1203,7 +1203,11 @@ public static function getURL($filename)
}

$paths = Video::getPaths($filename);
$file = $paths['path'] . $filename;
if(!preg_match('/index.mp4$/', $paths['path'])){
$file = $paths['path'] . $filename;
}else{
$file = $paths['path'];
}
if (!file_exists($file)) {
$file = $paths['path'] . $filename;
}
Expand Down

0 comments on commit 0b8ed92

Please sign in to comment.