ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
132.46k stars 10.04k forks source link

[REQUEST] --write-single-json argument #5486

Open johnlage opened 9 years ago

johnlage commented 9 years ago

I think it would be helpful for there to be a version of --dump-single-json that wrote the progress to the STDOUT like normal downloading operations, but wrote the JSON file to disk like --write-info-json. This would essentially be --write-info-json for playlists and channels. I am currently writing a website that will use youtube-dl for its youtube video downloading, and video/playlist/channel information gathering. Having this option will allow me to monitor the progress of the information updates easily, which i cannot do with --dump-single-json.

Thanks,

John Lage

johnlage commented 9 years ago

This would be less necessary if something solving #2867 was created, but if that is not possible, that is fine.

jaimeMF commented 9 years ago

Do you want the file to be written with the full playlist (at the end) or that each time a video is downloaded the json file is updated?

johnlage commented 9 years ago

Either one of those would work, but I guess lets go with the write every time a video downloads option.

Thanks

John Lage