Convert vtt files to srt subtitle format
For Python 3.7 you can get version for Python 2.7 here
pip install vtt_to_srt3
python -m pip install vtt_to_srt3
python -m vtt_to_srt pathname [-r]
pathname - a file or directory with files to be converted
-r - walk path recursively
Convert vtt file
from vtt_to_srt.vtt_to_srt import vtt_to_srt
path = '/path/to/file.vtt'
vtt_to_srt(path)
Recursively convert all vtt files in directory
from vtt_to_srt.vtt_to_srt import vtt_to_srt
path = '/path/to/directory'
vtt_to_srt(path, rec = True)