I am trying to download json metadata(NOT VIDEOs) for all videos in a youtube playlist through youtube-dl. I also want to ignore downloading already downloaded json metadata for the videos in the playlist while running the same command again. so, here is the command that i have tried,
youtube-dl -i --write-info-json --skip-download --download-archive archive.txt {youtube-playlist-url}
--write-info-json writes the video info.json
--skip-download Do not download the video
--download-archive archive.txt archive.txt contains a list of already downloaded video ids, so youtube-dl will not download those videos again
However, including --skip-download argument to youtube-dl results in video ids not being added to archive.txt, which suggests yt-dl only adds video id to archive.txt after downloading the video. Are these two commands(--skip-download & --download-archive archive.txt) able to run together? or is there any other way to accomplish it?