Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Youtube-dl downloads WRONG AUTOGENERATED SUBTITLES #17615

Open
sg2013test opened this issue Sep 20, 2018 · 0 comments
Open

Youtube-dl downloads WRONG AUTOGENERATED SUBTITLES #17615

sg2013test opened this issue Sep 20, 2018 · 0 comments

Comments

@sg2013test
Copy link

@sg2013test sg2013test commented Sep 20, 2018

Hi,

youtube-dl version is 2018.09.18.

I am trying to download english autogenerated subtitles to the following video:
https://www.youtube.com/watch?v=f-wWBGo6a2w

I am GETTING WRONG AUTOGENERATED subtitles. Both the ttml and vtt subtitles that I am getting are wrong,

For example, if you watch given video online on youtube with autogenerated english subtitles turned on,
the first sentence will be "well thenk you all very much for comming"
but in the vtt and ttml files that I am getting the first line is "Thank you all for coming "

plus the vtt file that I am getting is truncated.

Please somebody help

I am attaching the autogenerated subtitles that I am getting for that video:

example.zip

and this is the code I am using:

import youtube_dl

at = '2018_'
video_name = 'ppppp'
youtube_url = 'https://www.youtube.com/watch?v=f-wWBGo6a2w'

ydl_opts2 = {
'skip_download': True,
'subtitleslangs': ['en'],
'subtitlesformat': 'ttml',
'writeautomaticsub': True,
"outtmpl" : r"{}_{}.%(ext)s".format(video_name, at),
}

with youtube_dl.YoutubeDL(ydl_opts2) as ydl:
ydl.download([youtube_url])

@sg2013test sg2013test changed the title Downloads wrong automatic subtitles Youtube-dl downloads WRONG AUTOGENERATED SUBTITLES Sep 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.