-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Add the option to return only the info_dict #296
Comments
It might be clearer to separate the info extracting and the passing to the downloader. So for example real_extract returns the info dict and extract passes it to the downloader. |
after studying the code a bit i came to the same conclusion! |
Actually the docstring for |
Hmm, the current implementation is insane, particularly for the randomly positioned |
…oad (#296) (follows current doclines); a small step towards importability #217
All the InfoExtractors now returns an info_dict. |
[pull] master from ytdl-org:master
When _real_extract() is called, it immediately sends the parsed info to it's FileDownloader.
To expand the usability of youtube_dl, it would be great if the caller could only retrieve the parsed video info and do whatever he pleases with it.
A quick look at the code shows that this could be done by adding a, for example, "data_only" argument to InfoExtractor.extract(),
which is a bool indicating if we should download, or only parse the info. This is then passed to _real_extract().
See this example for init.py, line 1450-1467. It assumes _real_extract() got the "data only" argument.
The text was updated successfully, but these errors were encountered: