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.
How to know when all playlist videos as been downloaded? #7517
Comments
|
I don't see why you need that. You just check one by one and in the last one x/x you can see when it ends |
|
no, because when the last x/x is displayed, the video has not yet been downloaded, or converted. |
|
I see your point, and it is a good idea. Anyway I checked what I did and it is to wait for the process to end (it is in java anyway), you can also read the percentage after last x/x or even look for the word "error" for some cases. |
|
@jaimehrubiks thanks for your answer
What about creating a new post processing option like that: --exec-playlist CMD : Execute a command after all playlist's videos has been downloaded. Or even easier, output a short message when the last video has been downloaded/converted: 'Process finished'. I don't know the python language, so i cannot propose a pull request :( |
|
@hedii I see now. I wish someone adds this. Anyway, again, I will try to help you :P So you check for: "ERROR: u'end'...." and you got it! Edit: But in case of other errors it might not be last line anyway. So another approach would be to add a text to the program itself when it ends. I won't post any pull request because I don't know how the program is structured and this might not be the best way possible to achieve this. |
|
@jaimehrubiks jajaja, dirty but it works. thanks |
|
You may need a more precise workaround for it: if result_type == 'playlist':
self.to_screen('[download] Process finished')As these codes are also executed when a |
When downloading playlist files, the line 'Downloading video x of x' is useful.
But it would be even more useful to have a line like that at the end of the output:
'All playlist videos downloaded'
I am using youtube-dl in a php app. I am parsing result lines to get progress, ETA, bandwidth, filename, etc..
But there is no information at all that i can use to know when the playlist download as ended.
Is there something to know when all playlist videos as been downloaded?