captioning icon indicating copy to clipboard operation
captioning copied to clipboard

Unable to parse srt file

Open Stafox opened this issue 9 years ago • 2 comments

Hello, I'm trying to parse srt file, but always got exception "{$FILENAME} is not a proper .srt file".

$srt = new SubripFile($file);

I trying these files (in different encodings), but without success. srt.zip

Maybe somebody may provide the srt file, which is valid? Or tell me why I got this exception. Thanks. My PHP version is 7.0.4.

Stafox avatar May 12 '16 21:05 Stafox

Are you still having this issue with the latest updates?

Tests are passing fine with PHP 7 on travis.

delphiki avatar Sep 17 '16 16:09 delphiki

Because your tests use srt file with small size. Try it on file with size about 150-200 Kb.

Stafox avatar Sep 17 '16 17:09 Stafox