Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Dec 20, 2023
1 parent 8ed6264 commit 16397ee
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions objects/video.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
}
/**
*
Expand Down

0 comments on commit 16397ee

Please sign in to comment.