From 16397eedc474eac05967d82e8422656d2c5c466c Mon Sep 17 00:00:00 2001 From: Daniel Neto Date: Wed, 20 Dec 2023 14:34:20 -0300 Subject: [PATCH] Update --- objects/video.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/objects/video.php b/objects/video.php index ecbca1bb5644..02502df74991 100644 --- a/objects/video.php +++ b/objects/video.php @@ -4244,9 +4244,11 @@ public static function getCleanFilenameFromFile($filename) } $path_parts = pathinfo($filename); - if (!empty($path_parts['extension']) && $path_parts['extension'] == 'vtt') { - $p = explode('.', $path_parts['filename']); - return $p[0]; + if (!empty($path_parts['extension'])) { + if ($path_parts['extension'] == 'vtt' || $path_parts['extension'] == 'srt' ) { + $p = explode('.', $path_parts['filename']); + return $p[0]; + } } /** *