YouTube-DL – How to Download Only Info-JSON Files Without Videos

youtube-dl

I'm a novice data hoarder, and have a few hundred videos archived from YouTube, using the following youtube-dl config file:

-i
-o "%(uploader)s (%(uploader_id)s)/%(upload_date)s - %(title)s - (%(duration)ss) [%(resolution)s] [%(id)s].%(ext)s"

# Archive Settings
--download-archive youtube-dl-archive.txt
-a youtube-dl-channels.txt

# Uniform Format
--prefer-ffmpeg
--merge-output-format mkv

# Get All Subs to SRT
--write-sub
--all-subs
--convert-subs srt

# Get metadata
--add-metadata
--write-description
--write-thumbnail

# Debug
-v

I just recently realized that I should really be including the --write-info-json option.

How can I go back through and download just the info-json files for all the videos without re-downloading the videos themselves? I've been using the -a option to keep track of what videos I've already archived, and thus I can easily use that file as a list of all the videos I need to download the info-json file for.

But I still don't know how to download just the info-json. Thanks for any pointers here.

Best Answer

Not a fully fledged answer, but as I am new and cannot add a comment, I have to use this

Have you tried the -j, --dump-json option, or one of the other ones listed in the manual at https://github.com/ytdl-org/youtube-dl/blob/master/README.md#verbosity--simulation-options ?

I just tried it and it seemed to work fine on a single video

Related Question