-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Regarding the issue that adding irregular proxies might cause some sites to fail to download #8036
Comments
The code in the latest main branch may have this issue. However, the code from July 6, 2023, does not have this issue. I noticed that this issue may have been caused by changes to the core code. |
The Abema extractor needs a complete rewrite to support the new networking framework properly, so wouldn't surprise me if there are issues. The developer who used to maintain it is no longer online/part of this project so someone else will need to pick it up. If anyone does want to, feel free to @ me for help on the framework side of things if need be. |
Okay, I understand. Unfortunately, I may not be of much help because I haven't used Python for development before. I can only provide some minor suggestions. |
That said I believe your patch is the right way to fix this issue with the current hacky workaround for Abema, so feel free to open a PR with it. |
Abema is currently the only extractor interfacing with RH directly. So issue will only be here. It's unlikely an Abema rewrite will happen any time soon. So your patch can be merged. Pls open a PR. |
Fixes #8036 Authored by: SevenLives
Fixes yt-dlp#8036 Authored by: SevenLives
DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
Checklist
Provide a description that is worded well enough to be understood
When I run the program, and add the --proxy parameter without a protocol header (for example, "127.0.0.1:1080", without "http://, socks5://" etc protocol headers), certain websites start to have problems.
I have noticed that in the file yt_dlp/YoutubeDL.py, on line 4085 of the function 'build_request_director', proxies are handled in such a way that if there's no protocol header, it will automatically add the http:// protocol header.
However, I've found that in the yt_dlp/extractor/abematv.py file, when getting an instance, it does not process the proxies. This causes multiple instances to be created without adding a handler, which results in a 'url type unknown' error.
If you change the code to the following, it can fix this problem.
I'm not sure if other websites would have the same issue, but I hope this would be of some help.
Provide verbose output that clearly demonstrates the problem
yt-dlp -vU <your command line>
)'verbose': True
toYoutubeDL
params instead[debug] Command-line config
) and insert it belowComplete Verbose Output
The text was updated successfully, but these errors were encountered: