295 if sections: |
295 if sections: |
296 extraText += "\n" |
296 extraText += "\n" |
297 for heading, text in sections: |
297 for heading, text in sections: |
298 extraText += "----- {0} -----\n{1}".format(heading, text) |
298 extraText += "----- {0} -----\n{1}".format(heading, text) |
299 |
299 |
300 duration = data.get("duration_s", None) |
300 duration = data.get("duration_s") |
301 if duration: |
301 if duration: |
302 # convert to ms |
302 # convert to ms |
303 duration *= 1000 |
303 duration *= 1000 |
304 |
304 |
305 filename = data["filename"] |
305 filename = data["filename"] |