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.
Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2019.03.18. 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?
youtube-dl -v
D:\MahmoudGad\projects\youtube_subtitle>youtube-dl -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v']
[debug] Encodings: locale cp1256, fs utf-8, out utf-8, pref cp1256
[debug] youtube-dl version 2019.03.18
[debug] Python version 3.7.2 (CPython) - Windows-8.1-6.3.9600-SP0
[debug] exe versions: none
[debug] Proxy map: {}
I'm had Question about subtitle I don't know if this is a bug or not I'm using python and execute library youtube-dl
now I'm using the next code to get requested_subtitles VTT English URL this
https://www.youtube.com/api/timedtext?expire=1553183441&....&lang=ar&tlang=en&fmt=vtt
so my question or problem is with lang = ar I don't know how to change this and this to return difference subtitle English and when changing this manual to lang=en the subtitle is working well
`ydl_opts = {
'skip_download': True,
'ignoreerrors':True,
'extract_flat':True,
'writeautomaticsub': True,
'subtitleslangs': ['en'],
'writesubtitles':False,
}
video_id = id
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
result = ydl.extract_info(http://www.youtube.com/watch?v='+video_id,False)
`