fix: keep subtitle line breaks when parsing srt file to json

update job duration label for video clips list
This commit is contained in:
Yassine Doghri 2022-01-20 15:37:54 +00:00
parent 11c916fe43
commit cfb3da6592
3 changed files with 5 additions and 2 deletions

View File

@ -68,6 +68,9 @@ class TranscriptParser
$subs[] = $sub; $subs[] = $sub;
} else { } else {
if ($subText !== '') {
$subText .= PHP_EOL . $line;
}
$subText .= $line; $subText .= $line;
} }
break; break;

View File

@ -25,7 +25,7 @@ return [
'passed_hint' => 'Clip was generated successfully!', 'passed_hint' => 'Clip was generated successfully!',
], ],
'clip' => 'Clip', 'clip' => 'Clip',
'duration' => 'Duration', 'duration' => 'Job duration',
], ],
'title' => 'Video clip: {videoClipLabel}', 'title' => 'Video clip: {videoClipLabel}',
'download_clip' => 'Download clip', 'download_clip' => 'Download clip',

View File

@ -25,7 +25,7 @@ return [
'passed_hint' => 'Lextrait a été généré avec succès!', 'passed_hint' => 'Lextrait a été généré avec succès!',
], ],
'clip' => 'Extrait', 'clip' => 'Extrait',
'duration' => 'Durée', 'duration' => 'Durée de traitement',
], ],
'title' => 'Extrait vidéo: {videoClipLabel}', 'title' => 'Extrait vidéo: {videoClipLabel}',
'download_clip' => 'Télécharger lextrait', 'download_clip' => 'Télécharger lextrait',