forked from Mirrors/l1ving_youtube-dl
[youtube] Fix download of auto-captions when subtitles are available
When invoked with --write-auto-sub (but without --write-sub), youtube-dl should only download automatic captions. However, for some videos with both automatic captions and manual subtitles (e.g. 2klmuggOElE; accessed on 16.04.2020), youtube-dl selects the manual subtitle track regardless. This commit makes _get_automatic_captions prefer a renderer['captionTracks'] entry with 'kind' == 'asr', if one is available, as the 'kind=asr' parameter also distinguishes the baseUrl's (but one could also filter by vssId.startswith('a.')).archive/recovered-github-prs
parent
00eb865b3c
commit
ef8c0ad835
Loading…
Reference in New Issue