Jun-29-2022, 09:23 AM
(Jun-29-2022, 12:26 AM)snippsat Wrote:Both commands (i.e. specific language and "all subtitles") get "full" French subtitles, i.e. not only Spanish is subtitled , but also French.(Jun-28-2022, 05:34 PM)Pavel_47 Wrote: How to select such version for downloading?Get a specific language.
yt-dlp --write-sub --sub-lang fr --skip-download https://www.arte.tv/fr/videos/104769-000-A/antonio-banderas-et-pedro-almodovarGet all subs.
yt-dlp --write-sub --all-subs --skip-download https://www.arte.tv/fr/videos/104769-000-A/antonio-banderas-et-pedro-almodovar/(Jun-28-2022, 05:34 PM)Pavel_47 Wrote: Does exist some document that explain how to use yt-dlp options in Python.The original documentation is sparse,but if you search foryoutube-dl embedded with python
will find tutorials(eg this one ).
I have used this option many times though the years for my Norwegian Tv project and apps with Flask and Click(eg getting mp3 with Click).
The subtitle file size is approximately 98 KB.
If, when playing the video online, you access the "Web Developer Tools" (if you are using Firefox), you can access the actual subtitle file (Network tab and specify vtt in the Filter field), i.e. the file which is used when the video is playing online. If you download this file, you can see that it is much smaller in size than what was downloaded using yt-dlp - around 44KB. This file contains the subtitles for Spanish only. My question is: is it possible to get this file using yt-dlp?