1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-22 16:44:32 +01:00

Don't add preceding newline when converting TTML to SRT

This commit is contained in:
Niklas 2018-10-02 19:11:12 +02:00
parent 405947c32e
commit 7ecd95aa91
No known key found for this signature in database
GPG Key ID: C7070AE8E74845B8

View File

@ -2850,6 +2850,9 @@ def dfxp2srt(dfxp_data):
index_offset += 1
out.append('%s\n' % (parse_node(para)))
else:
if out:
out.append('\n')
out.append('%d\n%s --> %s\n%s\n' % (
index - index_offset,
srt_subtitles_timecode(begin_time),
srt_subtitles_timecode(end_time),