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

List of subtitles #15736

Closed
embryo10 opened this issue Mar 1, 2018 · 2 comments
Closed

List of subtitles #15736

embryo10 opened this issue Mar 1, 2018 · 2 comments
Labels

Comments

@embryo10
Copy link

@embryo10 embryo10 commented Mar 1, 2018

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like this: [x])
  • Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.02.26. 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 2018.02.26

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

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):

Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.


Description of your issue, suggested solution and other information

I use youtube-dl as a library in a python program.
Everything works ok exept the subtitles.
I can not get the subtitle info from any video.
Tried with a youtube one https://www.youtube.com/watch?v=8jPQjjsBbIc that it contains a lot of them.
Using

ydl_opts = {'listsubtitles': True, "logger": logger,}
        with youtube_dl.YoutubeDL(ydl_opts) as ydl:
            info = ydl.extract_info(self.link, download=False)
            return info

returns None
If I don't use the listsubtitles key, I get the info dict as expected.
I searched the net for this and I found this answer and nothing else.
I must be doing something wrong, but I don't know what....
Any ideas on how to get the subtitle's list and how to download a specific one (this is the second thing I have to do after listing the subtitles)

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Mar 1, 2018

  1. {'writesubtitles': True}.
  2. {'subtitleslangs': list of langs, 'skip_download': True}.
@dstftw dstftw closed this Mar 1, 2018
@dstftw dstftw added the question label Mar 1, 2018
@embryo10
Copy link
Author

@embryo10 embryo10 commented Mar 1, 2018

@dstftw Thank you.

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.