Closed mjgiarlo closed 9 months ago
@mjgiarlo maybe it would be better to explicitly specify the encoding as utf-8 when opening the JSON file, as utf-8 is a more universal encoding standard that can handle a wider range of characters given the default encoding for the open()
function can vary depending on the system.
with open(input_path, 'r', encoding='utf-8')
This commit adds the ability to convert the generated JSON output to VTT and TXT, retaining the ability to convert SRT. It now defaults to formatting as SRT for backwards compatibility.
Here's what the tool as currently written generates (with an admittedly simple
output.json
file).SRT
VTT
TXT