Skip to content

Commit

Permalink
[youtube] separate files for autogenerated caption tracks
Browse files Browse the repository at this point in the history
  • Loading branch information
soimort committed Jun 27, 2024
1 parent 0c216b3 commit 882b9c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/you_get/extractors/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 882b9c0

Please sign in to comment.