pysrt icon indicating copy to clipboard operation
pysrt copied to clipboard

Python parser for SubRip (srt) files

Results 30 pysrt issues
Sort by recently updated
recently updated
newest added

I occasionally see SRTs in which 1 or 2 captions begin with the Line Separator character, u2028. Those captions get incorrectly parsed as blank. I believe the character originates in...

I downloaded a sample subtitle from OpenSutitle but when I run the following code, it just returns an empty list: ``` result = chardet.detect(rawdata) charenc = result['encoding'] subs = pysrt.open(file_path,...

Hi, It would be great if srt command could 'unsplit' subtitles. Something like: `$ srt join movie.1.srt movie.2.srt movie.3.srt > movie.srt`

I have found some srt files that have a -> as time separator, so this is a try to fix that. The module can read both --> and ->, but...

I do ``` sudo pip3 install pysrt [sudo] password for harryvanderwolf: Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting pysrt Using cached https://www.piwheels.org/simple/pysrt/pysrt-1.1.2-py3-none-any.whl Requirement already satisfied: chardet in /usr/lib/python3/dist-packages (from pysrt) (3.0.4)...

Hi, thanks for this very useful library! More than an issue, this is a question: is there a way to speed up loading of .SRT files? I have a use...

If you receive some times as strings, split them into parts and try calling `SubRipFile.slice` with a dict of those parts, e.g.: ```subs.slice(starts_after={'minutes': '11', 'seconds': '22'})``` then you'll get a...

Hello, I am working through an online class and trying to produce notes based on the instructional video content. Since many of the concepts covered in these videos are worth...

Would it be possible to publish a release and push it it to pypi? The [1.1.1 release](https://pypi.org/project/pysrt/1.1.1/) is from April 2016 and does not contain [the python 3 clasifiers](https://github.com/byroot/pysrt/commit/3bbad74a74f3f127eab47df2c091ae63c9597969) added...

Almost ~40% of subtitles fail to parse because of unicode errors. ``` Traceback (most recent call last): File "/home/username/bin/nocc", line 11, in load_entry_point('nocc', 'console_scripts', 'nocc')() File "/home/username/projects/nocc/nocc/nocc.py", line 155, in...