diff --git a/src/you_get/extractors/youtube.py b/src/you_get/extractors/youtube.py index cca65f08..e36124c8 100644 --- a/src/you_get/extractors/youtube.py +++ b/src/you_get/extractors/youtube.py @@ -274,7 +274,10 @@ class YouTube(VideoExtractor): srt += '%s --> %s\n' % (start, finish) 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 # Prepare DASH streams