Skip to content

Commit 61a9730

Browse files
committed
@mfilemtime
Signed-off-by: Andrew Welch <andrew@nystudio107.com>
1 parent d7ecd82 commit 61a9730

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/services/Transcode.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public function getVideoUrl($filePath, $videoOptions): string
187187
}
188188

189189
// If the video file already exists and hasn't been modified, return it. Otherwise, start it transcoding
190-
if (file_exists($destVideoPath) && (filemtime($destVideoPath) >= filemtime($filePath))) {
190+
if (file_exists($destVideoPath) && (@filemtime($destVideoPath) >= @filemtime($filePath))) {
191191
$url = $settings['transcoderUrls']['video'] ?? $settings['transcoderUrls']['default'];
192192
$result = Craft::getAlias($url).$destVideoFile;
193193
} else {
@@ -371,7 +371,7 @@ public function getAudioUrl($filePath, $audioOptions): string
371371
}
372372

373373
// If the audio file already exists and hasn't been modified, return it. Otherwise, start it transcoding
374-
if (file_exists($destAudioPath) && (filemtime($destAudioPath) >= filemtime($filePath))) {
374+
if (file_exists($destAudioPath) && (@filemtime($destAudioPath) >= @filemtime($filePath))) {
375375
$url = $settings['transcoderUrls']['audio'] ?? $settings['transcoderUrls']['default'];
376376
$result = Craft::getAlias($url).$destAudioFile;
377377
} else {
@@ -614,7 +614,7 @@ public function getGifUrl($filePath, $gifOptions): string
614614
}
615615

616616
// If the video file already exists and hasn't been modified, return it. Otherwise, start it transcoding
617-
if (file_exists($destVideoPath) && (filemtime($destVideoPath) >= filemtime($filePath))) {
617+
if (file_exists($destVideoPath) && (@filemtime($destVideoPath) >= @filemtime($filePath))) {
618618
$url = $settings['transcoderUrls']['gif'] ?? $settings['transcoderUrls']['default'];
619619
$result = Craft::getAlias($url).$destVideoFile;
620620
} else {

0 commit comments

Comments
 (0)