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.
Return more values to the hook #2363
Comments
|
Instead of sending this info each time, I would send it just once in YoutubeDL.process_info before it starts writing things to disk and downloading the video. You can read the info by using the info.json file, since you know the video filename, you can easily load the information. |
|
can you give a simple example? |
Currently the hook looks like this
This is the
downloader > common.pyfile.What I would like is that the hook should return more values like the thumbnail url and the title ( more specifically the values returned by the extractor ). Is it possible to implement this feature. What I am doing is that I am making a GUI for youtube-dl in PyQt and want to access these values in a single run. Another way could be to first run youtube-dl with -g and other switches and then download the file in another run but I want to run youtube-dl only one time. If there is another way then do tell me.
The GUI is under heavy development and is available at https://github.com/yasoob/youtube-dl-GUI