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.
[googledrive] Add support for subtitles #13619
Comments
|
Hi @nyuszika7h, As @dstftw has noted, the extractor for Google Drive videos should be updated to include any available captions. I will give this one a shot if no one has any objections. How did you deduce the URL for the Hungarian subtitles? I was not able to find a reference for this anywhere in the page source for this video. Cheers, Parmjit V. |
|
I just loaded the page in Firefox and used the network request logger. There's a request to some |
|
@nyuszika7h - Cool. I will look into that further as well. Basically I am looking for a generic URL that can be used to extract the caption data for a given video, Hungarian or otherwise. If such a URL exists we should be able to use it in the extractor to fetch the subtitle info. @siddht1 - Thank you! Did you have to convert the XML file manually? I believe youtube-dl supports both SRT and VTT file formats for captions - please correct me if I am mistaken? |
|
@siddht1 - OK. I have figured out the URL schema for the captions and should have a new PR ready in the next day or so. I am going to compose the subtitles as SRT files, using the example file you have provided as a template. There are some utilities already available in the codebase to help us out - if this does not work we can look at using the VTT format as you suggest instead. |
|
youtube-dl already supports TTML (XML) subtitles, there is no need for additional conversion. Perhaps |
|
google already serve |
|
Thanks for the info everyone! I will use the caption URLs already made available to us and see what happens. What happened to @siddht1 - I no longer see his contributions in this thread? |
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 2017.07.09. 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 bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add
-vflag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):Description of your issue, suggested solution and other information
This video has Hungarian subtitles, but youtube-dl doesn't recognize them.
Subtitle URL: https://drive.google.com/timedtext?authuser=0&id=0B0Pcx5-LUToEblNxcXRPWmtmS00&vid=851eb6773c9a6ff5&hl=en-US&v=0B0Pcx5-LUToEblNxcXRPWmtmS00&type=track&lang=hu&name&kind&fmt=1