in translate_captions/captions_helper.py [0:0]
def captionsToVTT(self, captions):
vtt = 'WEBVTT\n\n'
for caption in captions:
vtt += self.formatTimeVTT(float(caption["start"])) + ' --> ' + self.formatTimeVTT(float(caption["end"])) + '\n'
vtt += caption["caption"] + '\n\n'
return vtt.rstrip()