-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
--match-filter Privated, Deleted or Premium videos? #689
Comments
There is no single-step way to do this since we cannot extract any metadata from unavailable videos. You will need to first run |
@pukkandan commented on Aug 14, 2021, 6:07 PM UTC:
It's a little tedious but with
That is unfortunate, since I have ~10-20K videos saved, and am just trying to ascertain which ones among those have been removed from public youtube, so it would be great if there were also an |
I have had a feature like this in mind as well, but for a different reason. I regularly re-crawl large playlists where most of the videos are already present in my download archive. yt-dlp quickly filters these out by pre-checking the archive, but that leaves mostly deleted videos which yt-dlp attempts to extract every time. With enough such videos, this becomes a significant bottleneck. With some types of errors, we can be pretty certain that a video won't become available again. By keeping track of these in a separate "error archive", yt-dlp can save the time it takes to rediscover that the same videos have been deleted every time. Determining which errors should be considered permanent and thus suitable for the archive vs user-specific (age-gated) or temporary (private videos which could potentially be made public again) might require dividing them into categories as described in #457, though. |
I've also wanted this, but can't figure out how to implement it 😅 The exceptions are thrown from all over the place and by the time they are caught, it is no longer known what the URL/video_id that threw the error is. I can probably make a dirty hack by saving the last processed URL in a class variable, but this is not a good practice and definitely won't be easy to maintain in the future |
From 1151c40, the error message will show the extractor and the video id. I know it isn't exactly what you requested, but this can help you find errored videos much easier than before
Note that for extractors other than youtube, the ID shown may not be the actual id (that is used in archive). This happens since we may not know the actual id when the extraction fails btw, please close this issue if your original question has been fully answered.
if you still want this, open a feature request |
Closed due to inactivity |
Checklist
Question
Using yt-dlp version 2021.08.10 (zip).
I have a list of youtube URLs. I only need to get the IDs of videos that are either Private or Deleted or Premium.
I know that in order to only get unlisted URLs from the list I could use
What should the
--match-filter
be to only get the ids ofI'm especially looking for a way to only
--get-id
of URLs that give this error:Thanks!
The text was updated successfully, but these errors were encountered: