Zend certified PHP/Magento developer

yt-dlp: search and download videos with closed captions / subtitles

yt-dlp has the ability to search the web for videos from the command line and download the first result, but I’d like to limit the search to results with Closed Captioning (㏄) or subtitles, if available.

For example, the following returns a video without subtitles, which is not what I want:

yt-dlp --embed-subs --default-search=auto '"A year ago last Thursday"'

I know this should be possible as I am able to do the search I want using a web browser by appending &sp=EgIoAQ to the search URL, like so:

How can I do this from the command line using yt-dlp?


Note 1: I only want human-generated, not machine generated, subtitles.

Note 2: –match-filter=requested_subtitles does not work as the filter is performed after the search.