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.
Does --download-archive work with either --dump-json or --flat-playlist? #23612
Comments
as you can read in the option description:
you can create the archive file the same way you're creating
no, it doesn't matter. |
|
Of course, it won't work, the download archive format is different from the |
|
That's solved. I can create an archive file that makes --download-arhive work, but I can't fix the |

Checklist
Question
I'm writing a Powershell script that outputs a list of titles and channels of a given playlist. The neatest way that I found was using --dump-json or -j on a file, then grabbing the titles (.fulltitle) and channel names (.uploader) with jq to generate another file, like this:
./youtube-dl.exe -i -j $url | jq -j '.fulltitle + \" - \" + .uploader + \"\n\"' >> titles.logwhich outputs something like this:Thing is, when I'm trying to implement --download-archive, to skip those files I've already listed and have sent to titles.log, the command just gives the same output, reading all the files and adding them to the bottom...again. Here are more details about it:
youtube-dl -j --download-archive archive.txt $URLoryoutube-dl --flat-playlist --download-archive archive.txt $URLthen adding a videos and running the command again gives the same results, listing ALL of the videos in a playlist in both cases. (In the second, with the videos added)../youtube-dl.exe -i -j $url | jq -j '.fulltitle + \" - \" + .uploader + \"\n\"' >> titles.logskips the first videos as initially intended.So my questions are: