0. Скачать youtube-dl
https://yt-dl.org/
1. Версия youtube-dl
youtube-dl --version
2. Обновить youtube-dl
sudo youtube-dl -U
3. Скачать список воспроизведения с youtube. Нужна версия более поздняя, чем 2014.02.17
youtube-dl -cit https://www.youtube.com/playlist?list=PL4ocSO-kYIyKXY0V1uZ7_ay3ewnFPTjAE
или через список URL в обычном текстовом файле.
youtube-dl -cit -a text_file_with_URL_list.txt
4. Продолжить скачивание после прерывания
youtube-dl -с -cit https://www.youtube.com/playlist?list=PL4ocSO-kYIyKXY0V1uZ7_ay3ewnFPTjAE
-i, --ignore-errors Continue on download errors, for example to
skip unavailable videos in a playlist
-c, --continue Force resume of partially downloaded files.
By default, youtube-dl will resume
downloads if possible.
5. Список субтитров для видео
youtube-dl --list-subs https://www.youtube.com/watch?v=O1tnAyARsmA
6. Скачать автоматические субтитры
youtube-dl --write-auto-sub --sub-lang ru --skip-download https://www.youtube.com/watch?v=O1tnAyARsmA