mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 13:35:16 +03:00
[youtube] separate files for autogenerated caption tracks
This commit is contained in:
parent
0c216b3eb4
commit
882b9c07f8
@ -274,7 +274,10 @@ class YouTube(VideoExtractor):
|
|||||||
srt += '%s --> %s\n' % (start, finish)
|
srt += '%s --> %s\n' % (start, finish)
|
||||||
srt += '%s\n\n' % content
|
srt += '%s\n\n' % content
|
||||||
|
|
||||||
self.caption_tracks[lang] = srt
|
if 'kind' in ct:
|
||||||
|
self.caption_tracks[ct['vssId']] = srt # autogenerated
|
||||||
|
else:
|
||||||
|
self.caption_tracks[lang] = srt
|
||||||
except: pass
|
except: pass
|
||||||
|
|
||||||
# Prepare DASH streams
|
# Prepare DASH streams
|
||||||
|
Loading…
Reference in New Issue
Block a user