diff --git a/src/Code/Converters/TtmlConverter.php b/src/Code/Converters/TtmlConverter.php index 0dcf354..4394c69 100644 --- a/src/Code/Converters/TtmlConverter.php +++ b/src/Code/Converters/TtmlConverter.php @@ -184,6 +184,7 @@ private static function DCSubtitles(string $file_content, $fps) { $xml = simplexml_load_string($file_content); + $internal_format = []; foreach ($xml->Font->Subtitle as $subtitle) { $internal_format[] = array( 'start' => self::ttmlTimeToInternal((string)$subtitle['TimeIn'], $fps), @@ -191,7 +192,7 @@ private static function DCSubtitles(string $file_content, $fps) 'lines' => self::getLinesFromTextWithBr((string)$subtitle->Text->asXML()), ); } -//var_dump($internal_format); exit; + return $internal_format; }