diff --git a/src/you_get/extractors/youtube.py b/src/you_get/extractors/youtube.py index cca65f0884..e36124c859 100644 --- a/src/you_get/extractors/youtube.py +++ b/src/you_get/extractors/youtube.py @@ -274,7 +274,10 @@ def prepare(self, **kwargs): 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