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.
Auto Batch Mode? #557
Auto Batch Mode? #557
Comments
|
Sounds like a great idea. |
|
Meanwhile, if you restart your batch, youtube-dl will simply skip the already downloaded videos at the beginning of the list. |
|
just tried with build 2012.11.27, it will still connect to youtube, download webpage, and extract information...and get file name base on parameters, if .part with then same file name exist, resume; if file name + ext exist then skip...... correct me if my guess are wrong... but don't you thinks it's unnecessary? and if you happen to change your rename rules, it will download everything again!.... |
|
Yeah, it's suboptimal, I pointed you at it only as a workaround. |
|
the way youtube-dl doing is fine and very "python" :). |
And if they publish their videos with a larger available format which Do you actually NEED this, @w524e ? |
|
I think he's asking to keep state not globally, but of the current batch. |
|
Then it implies that there each batch task will finish succeeding which Hit me where I am wrong. |
|
NO....I need youtube-dl "forget" what it did. first, "youtube-dl.exe -x -y -z --batch-file "batchlist.txt" Again, if DOS can do that, Python can do it better, right? :D A better way it's like this: When youtube-dl reads it, only read the lines that don't start with "# " Just a different way to handle the "--batch-file" file... |
|
I never asked youtube-dl team to add wget flavours; instead, I prefer And yes, you say «cmd can do that, so Python too, indeed». Well, And yes, you wrote there how your DOS batch file works. And you |
|
That how youtube-dl calls it, (see --help) :D the way i did can do the job, but it has limitations :( . Anyway, re-downloading every ~200k Html file (for youtube) might not be the best way to check skipping for those who has a lot (say 1000+ :D) of to "batch". (*edit by @phihag: snip the zen *) |
|
This discussion is getting way out of hand. The feature like a good idea, the data format and proposed algorithms are sufficiently simple to be worthy of being implemented. Feel free to supply a patch request. |
Remove the link from a text file assigned by
--batch-file(or move to a backup file) when a file completed, and automatically resume the list for incomplete download when the last line of the text is done (instead of quitting, process the batch file again--sorry for my poor english), until the list is empty or no more .part file in the current directory. It would be useful for interrupted batch download due to wifi problem or other reasons. Now i'm using sed with some Windows batch code to do this, but it's a bit troublesome. it would be nice if youtube-dl can do this. thanks