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.
Extract subs from OpenLoad videos #10625
Comments
|
Ok, I found where the vtt comes from. In the page HTML, we can see : I don't really know Python, so I don't think I can provide the real code, but I think finding the Just for info, there appears to be more |
|
Steven Universe is a copyrighted product of Cartoon Network. Do you have other examples with subtitles? |
|
You can use https://openload.co/embed/rjC09fkPLYs which is an upload of http://lachuteduneplume.free.fr/?-English-, an open-source movie. It contains english subtitles, which can be found as seen previously with the |
|
Do you need me to remove the example links in the first message to avoid copyright issues ? |
|
Thanks for the new example.
Yeah it should be better to do so. |
Ref: #10625 In a strict sense, <track>s with kind=captions are not subtitles. [1] openload misuses this attribute, and I guess there will be more examples, so I add it to common.py. Also allow extracting information for subtitles-only <video> or <audio> tags, which is the case of openload. [1] https://www.w3.org/TR/html5/embedded-content-0.html#attr-track-kind
|
Subtitles on openload will be recognized in the next version. Thanks for the report and the example. |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like that [x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2016.09.11.1. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue
If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):
Description of your issue, suggested solution and other information
OpenLoad videos can have subtitle files, but they are not returned when using
--list-subs. I did not manage to find where the file is specified in the page, or in the Javascript, but when observing the page with web tools, a .vtt file is clearly downloaded, with a specific name scheme.I think what there is to do is to find how this name scheme work, in order to download the subtitle file.
Example of subtitle files corresponding to the two videos specified above :