-
Notifications
You must be signed in to change notification settings - Fork 40
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
This video requires payment to watch #40
Comments
What exactly are you trying to do? |
Get video/channel data, this channel happens to have paid videos which crash yt-dlp, I just wanna skip the paid videos, I believe there's an ignore errors flag or something for that but youtube_dl would have to use that flag. |
Can you pass it manually? (with this method) |
Ah I didn't see that, that'll work, thanks! |
Cool, glad I could help. |
This is related, would be nice to have JSON errors, or a way to filter out errors with a flag, but considering no progress over almost two years, I wouldn't count on it any time soon. |
To make my findings clearer, I've deleted my previous comments as they were contradictory. I found that the I also found that the exit code of yt-dlp is always 1 if there's stderr, so the explicit success check prevents youtube_dl from parsing the valid JSON in stdout. My suggestion would be an ignore_errors builder function to toggle a bool that skips the exit code check, but after that I ran into another problem, that the video that was premium/errored is "null" in the entries JSON which serde_json fails to parse into a Playlist struct. |
Is there a way to fix this, skip the videos, etc?
The text was updated successfully, but these errors were encountered: