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.
Add method extract_info to FileDownloader #710
Comments
|
Yeah, that would be nice, although at that point, I'd prefer a YoutubeDL class (along with Pythonic module-level methods as a shortcut to it), that setups openers, constructs IEs, handles I/O, and constructs the FileDownloader. |
|
So, you'd prefer a class for getting the videos info and other for downloading? |
|
No, one to coordinate everything, with methods like |
|
Understood. |
|
Done |
That method would look like this:
Then in info extractors instead of calling
fd.download([url]), we could callfd.extract_info(url)and append the videos returned to the ones we've already got.This makes InfoExtractors just get the videos info. If needed file downloader will download them.
It would make easier to use youtube-dl as an API for getting videos info.
the download method would need to be rewritten: