Change a number of subtitle sequence to begin with one (instead of zero) for ffmpeg...
authorWitchakorn Kamolpornwijit <admin@chalet16.com>
Tue, 26 Jun 2012 12:24:30 +0000 (19:24 +0700)
committerWitchakorn Kamolpornwijit <admin@chalet16.com>
Tue, 26 Jun 2012 12:24:30 +0000 (19:24 +0700)
youtube_dl/InfoExtractors.py

index d02bd29f74d79abd2f194bcf60bab81e2319fa8a..0b5d76bdbd89f393340afdec9e0a79b86df615c8 100644 (file)
@@ -182,7 +182,7 @@ class YoutubeIE(InfoExtractor):
                        end = "%02i:%02i:%02i,%03i" %(end/(60*60), end/60%60, end%60, end%1*1000)
                        caption = unescapeHTML(caption)
                        caption = unescapeHTML(caption) # double cycle, intentional
-                       srt += str(n) + '\n'
+                       srt += str(n+1) + '\n'
                        srt += start + ' --> ' + end + '\n'
                        srt += caption + '\n\n'
                return srt