Skip to content

Ismedom/srt-format-as-array

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

srt-format-as-array

This Python script reads a SubRip Subtitle (SRT) file, parses its content, and converts the subtitles into a list of dictionaries. Each dictionary represents a subtitle entry with index, time_start, time_end, and text properties. The time_start and time_end properties are converted from the HH:MM:SS,mmm format to seconds. 1 00:00:01,000 --> 00:00:04,000 This is the first subtitle.

2 00:00:05,000 --> 00:00:08,000 This is the second subtitle.

3 00:00:09,000 --> 00:00:12,000 This is the third subtitle.

About

.srt formate as array

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages