mantas-done / subtitles

Subtitle/caption converter
https://gotranscript.com/subtitle-converter
MIT License
143 stars 50 forks source link

Array output #93

Closed pierrepavlov closed 4 weeks ago

pierrepavlov commented 4 weeks ago

Hi, Great package!

There doesn't seem to exist any documented way of just outputting the content as an array. From what I can find there's the internal_format array which can be accessed via the getInternalFormat() method, but that's marked as "for testing only", so I'm not sure that's safe to rely on.

Am I missing something?

mantas-done commented 4 weeks ago

Hi, it is safe to use it. It doesn't change, because all the converters use it. Just out of curiosity, what for you will be using getInternalFormat()?

pierrepavlov commented 4 weeks ago

Okay, that's great! I'm currently just interested in reading the data from some subtitle files and then I'm going to show it as a transcript on a page. So I just want to get them as an array I can loop through.