-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Unable to extract mp3Form form for InfoQ video #31131
Comments
The page doesn't have the |
I was able to work around this problem by modifying the |
That would work in this case. More generally, let's assume that the targeted form is sometimes present. We can either
|
The first option occurred to me to minimize the number of things touched (infoq.py vs infoq.py and common.py) and just deal with a smaller blast radius. The second option would better if other extractors might need to deal with a similar situation. This would expose more of the facilities that Thanks for looking into this! |
I tried extending the
This is what I did:
The warning comes from the To have the warning message not printed when passing
|
You can use So I would (and did, just like your diff above) use
Having a look at yt-dlp's extractor, the case is already handled and ignored there. Equivalent yt-dl code would be: def _extract_http_audio(self, webpage, video_id):
+ try:
- fields = self._form_hidden_inputs('mp3Form', webpage)
+ fields = self._form_hidden_inputs('mp3Form', webpage)
+ except ExtractorError:
+ fields = {}
http_audio_url = fields.get('filename')
... This code assumes that any kind of |
Awesome! Thanks, again! |
* proposed fix for issue #31131, aligns with yt-dlp Co-authored-by: dirkf <fieldhouse@gmx.net>
Thanks for the commit! |
* proposed fix for issue ytdl-org#31131, aligns with yt-dlp Co-authored-by: dirkf <fieldhouse@gmx.net>
* proposed fix for issue ytdl-org#31131, aligns with yt-dlp Co-authored-by: dirkf <fieldhouse@gmx.net>
Checklist
Verbose log
Description
I can watch the video in a browser when I'm logged in or not. When downloading the video with youtube-dl, I get the error, "Unable to extract mp3Form form".
The text was updated successfully, but these errors were encountered: