Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Unable to download subtitles using class YoutubeDL, but works on CLI? #1750
Comments
|
It should be fixed now, we didn't set a default value for the subtitles format, this produced that the subtitles urls have the There are some differences when using
But apart from that, they should behave the same, in that case if any field is missing in the params dict. there should be a default value. |
This version contains a fix for an issue which prevents the old version from downloading subtitles: ytdl-org/youtube-dl#1750
Hi,
I'm using the edu_10gen_dl script (https://github.com/nonsleepr/edu_10gen_dl) to download videos, which just calls youtube-dl under the hood.
The videos download correctly, however, the subtitles do not. Output from the script:
The strange thing is, when I download that same video id (Lwms58Y_3Jc) using the youtube-dl command line client, it works fine:
However, when the edx_dl.py imports from the youtube-dl library, it does not work:
In this case, video_id is simply the unicode string "Lwms58Y_3Jc".
I was wondering, is there some difference in behaviour between calling the youtube-dl command line client, versus important YoutubeDL and calling .download() with a video id?
Or anything else that might explain the above behaviour?
Thanks,
Victor