mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-30 12:01:28 +00:00
Merge pull request #363 from chalet16/master
Change a number of subtitle sequence to begin with one - closes #362
This commit is contained in:
commit
65dc7d0272
|
@ -182,7 +182,7 @@ def _closed_captions_xml_to_srt(self, xml_string):
|
||||||
end = "%02i:%02i:%02i,%03i" %(end/(60*60), end/60%60, end%60, end%1*1000)
|
end = "%02i:%02i:%02i,%03i" %(end/(60*60), end/60%60, end%60, end%1*1000)
|
||||||
caption = unescapeHTML(caption)
|
caption = unescapeHTML(caption)
|
||||||
caption = unescapeHTML(caption) # double cycle, intentional
|
caption = unescapeHTML(caption) # double cycle, intentional
|
||||||
srt += str(n) + '\n'
|
srt += str(n+1) + '\n'
|
||||||
srt += start + ' --> ' + end + '\n'
|
srt += start + ' --> ' + end + '\n'
|
||||||
srt += caption + '\n\n'
|
srt += caption + '\n\n'
|
||||||
return srt
|
return srt
|
||||||
|
|
Loading…
Reference in a new issue