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.25k stars 10.03k forks source link

Skip private videos in playlists #18229

Open cheater opened 5 years ago

cheater commented 5 years ago

Please follow the guide below


Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.11.18. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

Before submitting an issue make sure you have:

What is the purpose of your issue?


The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


Description of your issue, suggested solution and other information

I would like an option that will make youtube-dl skip private videos and not mark them as errors. The rationale behind this is: I want to download a large playlist, with a couple private videos. If I tell youtube-dl to skip errors with -i, if any of the other videos have actual legitimate errors (network issues, server down, etc) then youtube-dl will not retry them. I want youtube-dl to skip only private videos, and infinitely retry all other videos. There is an existing issue that sort of touches on this topic, but the rationale was different, so this is not a duplicate: #1594 - in that issue, the user just wanted to skip private videos and didn't care about other videos getting skipped due to other errors. In this scenario, I want other errors to cause infinite retries. I would like an option such as --skip-inaccessible-videos. The rationale behind the name is that depending on the site you are on, the video might not be accessible to various reasons: it's been made private, you're not in a specific group, you haven't subscribed to a specific user, you're not friends with a user, the video is paid-for, etc. This is in contrast to errors such as network errors, file system errors, etc, i.e. things that can be recovered from by just retrying.

benjaminmesser commented 4 years ago

Strongly second this suggestion. This would be a very useful and welcome feature if it's possible that it can be added. I expect that there might be issues with finding "private" videos universally on any site, but even finding them exclusively on YouTube would be fantastic.