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

Question subtitle get language English #20433

Closed
mahmoudgad94 opened this issue Mar 21, 2019 · 0 comments
Closed

Question subtitle get language English #20433

mahmoudgad94 opened this issue Mar 21, 2019 · 0 comments
Labels

Comments

@mahmoudgad94
Copy link

@mahmoudgad94 mahmoudgad94 commented Mar 21, 2019

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2019.03.18. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2019.03.18

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

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)

`

@dstftw dstftw closed this Mar 21, 2019
@dstftw dstftw added the incomplete label Mar 21, 2019
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
2 participants
You can’t perform that action at this time.