-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[bug] [reddit] Some v.redd.it links on User Profiles (possibly others) fail to download, 'NoneType' is not iterable error. #3258
Comments
Without cookies I only get a non-fatal error:
|
looks like reddit extractor wants to hand off to yt-dlp because the JSON file has is_video=true but it's using the JSON url key/value A proposed fix would be to check for the existence of fallback_url when the domain is v.redd.it and use that value to hand off to yt-dlp. I can work on that if it makes sense? |
what is a more pythonic fix?
b)
to be inserted in the RedditExtractor items() method right before the yield in the elif submission["is_video"]: block how to test that the change doesn't break other scenarios? can submit pull request for fix if we are on the right track. |
I believe @InterruptSpeed may be partially correct on this. I've been experimenting with various solutions over the last few days, focusing mainly on cookies being the issue (due to verbose feedback from gallery-dl and yt-dlp independently). Removing cookies altogether, the same behavior exists when trying the URI with yt-dlp by itself. The |
* use fallback_url for reddit_video to fix issue 3258 * changed to dash_url to include audio * update - use [] instead of .get - catch TypeErrors in case one of the elements is not a dict Co-authored-by: InterruptSpeed <steven@docherty.ca> Co-authored-by: Mike Fährmann <mike_faehrmann@web.de>
I recently ran across this bug while parsing a subreddit, but I can only reliably recreate the issue with a NSFW video link on a users profile so far. Otherwise, the issue is intermittent/fails to occur, no idea why.
Verbose output:
The text was updated successfully, but these errors were encountered: