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

programming hook for getting info_dict #13017

Closed
d0u9 opened this issue May 7, 2017 · 1 comment
Closed

programming hook for getting info_dict #13017

d0u9 opened this issue May 7, 2017 · 1 comment

Comments

@d0u9
Copy link
Contributor

@d0u9 d0u9 commented May 7, 2017

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 that [x])
  • Use Preview tab to see how your issue will actually look like

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

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

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

Hello, everybody,

I want to embed youtube-dl into my project, and I want to obtain the info_dict before the actually download. I checked youtube_dl/YoutubeDL.py but find noting. There only exists a forcejson option related to this purpose. I can write a simple logger and filter the dumpled messages to obtain this json string. However, this implementation is not clean and graceful.

So, is there some hooks can help?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented May 7, 2017

YoutubeDL.extract_info(url, download=False).

@dstftw dstftw closed this May 7, 2017
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.