byroot / pysrt

Python parser for SubRip (srt) files
GNU General Public License v3.0
446 stars 67 forks source link

time passed to at() will not find caption if the time passed in equals start time of caption #74

Open pkarp0 opened 6 years ago

pkarp0 commented 6 years ago

For example in the file captions.srt: 1 00:00:02,000 00:00:03,000 Hello world

import pysrt captions = pysrt.open('captions.srt') select = captions.at(seconds=2) select [] select = captions.at(seconds=3) select []