From 882b9c07f80f0b666b3f1c4fac0e7625c5c0399f Mon Sep 17 00:00:00 2001 From: Mort Yao Date: Thu, 27 Jun 2024 05:53:56 +0200 Subject: [PATCH] [youtube] separate files for autogenerated caption tracks --- src/you_get/extractors/youtube.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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