Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

youtube-dl: “--skip download” cancels out “--download-archive” (non-video material) #21878

Closed
SillyScribe95 opened this issue Jul 23, 2019 · 5 comments
Labels

Comments

@SillyScribe95
Copy link

@SillyScribe95 SillyScribe95 commented Jul 23, 2019

Checklist

  • I'm asking a question
  • I've looked through the README and FAQ for similar questions
  • I've searched the bugtracker for similar questions including closed ones

Question

WRITE QUESTION HERE

SO question (link here):

https://stackoverflow.com/questions/57168566/youtube-dl-skip-download-cancels-out-download-archive-non-video-materi

trying to download a Youtube playlist's json metadata (NOT VIDEOs):

--skip download ignores video downloads, just giving the .json info

--download-archive archive.txt saves a URL list of previously downloaded videos from this playlist to archive.txt, and skips over them if I run the youtube-dl command again.

However, including --skip download in the commands results in URLs of each video not being added to archive.txt, which suggests yt-dl only counts videos as extracted metadata and no . Are the two commands able to run together in any format/order or is this a bug?

EXAMPLE CODE:

youtube-dl -i --write-info-json --skip-download --download-archive __archive___.txt < PLAYLIST >

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Jul 23, 2019

--download-archive FILE          Download only videos not listed in the
                                 archive file. Record the IDs of all
                                 downloaded videos in it.

Record the IDs of all downloaded videos in it.

@remitamine remitamine closed this Jul 23, 2019
@SillyScribe95
Copy link
Author

@SillyScribe95 SillyScribe95 commented Jul 24, 2019

I made reference to this in the original post with "previously downloaded videos"; apologies if that wasn't clear.

Just checking if there's a command equivalent to --download-archive for non-video metadata, or could it be appropriated for such purposes?

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Jul 24, 2019

no, there is no such option.

@TomArrow
Copy link

@TomArrow TomArrow commented Apr 1, 2020

I would also like this option if possible. I'm trying to download all descriptions from a channel, but many videos are restricted and due to DNS issues it skips random ones, so I have to sit through thousands of download attempts hoping it will get them all eventually.

@akaleeroy
Copy link

@akaleeroy akaleeroy commented May 9, 2020

Please consider adding this option. I downloaded GBs worth of videos only to realise the playlist was ongoing. Renamed the files into something sane, so the only option now to continue where I left off is using a --download-archive log file. I'm not about to waste that much bandwidth on re-downloading just to produce the log.

The format for the --download-archive log file is

youtube AdL9Yd0lB_k
youtube YxBZbzIXNTg
youtube qsE_XxfFQ0w
youtube AdL9Yd0lB_k
...

As a workaround one could use youtube-dl --get-id <channel/playlist url> >> archive.log then prepend youtube to each line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.