[youtube] separate files for autogenerated caption tracks

This commit is contained in:
Mort Yao 2024-06-27 05:53:56 +02:00
parent 0c216b3eb4
commit 882b9c07f8
No known key found for this signature in database
GPG Key ID: 07DA00CB78203251

View File

@ -274,6 +274,9 @@ class YouTube(VideoExtractor):
srt += '%s --> %s\n' % (start, finish)
srt += '%s\n\n' % content
if 'kind' in ct:
self.caption_tracks[ct['vssId']] = srt # autogenerated
else:
self.caption_tracks[lang] = srt
except: pass