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
Trouble Downloading MP4 URLs with HTTPS Protocol on PornHub Website: Unauthorized Error #9841
Comments
You are just pasting the link into your browser? Does it download with yt-dlp? Look at all the fields in the format dict; some Show a log or give a minimal reproducible example. |
Yes, there is an expiration, but let's assume I use yt-dl to get info, and then suddenly use the URL, even though it's not working, even though the expiration time is still valid. @bashonly Even I have tried with cookiefile but have not succeeded. |
You still didn't answer whether yt-dlp is able to download that format or not. |
No, yt-dlp cannot download videos in mp4 format using the HTTP protocol. @bashonly However, it does support downloading videos in M3U8 format. You can verify this by testing it with any public URL from the website, and also consider checking with cookies |
|
I'm using this kind of method in python. @pukkandan
Print output
in this print response, there is mp4 URL, that I wanted to open/download in the browser directly. If i Use your given command
|
To check the URL that you appear to have used (as far as the unhelpful screenshot shows), add a format selection option |
I didn't get you!, can you please explain more, as my concern is download mp4 directly from URL from info, not from m3u8 URL using yt-dlp with just try with I have given URL, there is mp4 URL like this, might this URL is expired so generated new one from given python code snippt. |
That is, run the yt-dlp command ("your given command") with that additional option. That will show that whether the extracted data is sufficient to get the media file without 403. If it is, then review the linked FAQ answer. |
Just give me an example of my URL with cookies or any required option that needs to be added in the header. I'm a bit confused based on the FAQ, I understood there are many dependencies for directly using URL in browser, but please help me if it possible.
|
Are you extracting the mp4 URL on a machine with a different IP address than the machine you are trying to load the URL in your browser with? The mp4 URL is tied to IP address. If you try to load that URL from a different IP, you will get the unauthorized error. |
@bashonly No, I used the same IP address while extracting info and loading the mp4 URL on browser! I have checked this case on starting. Just try with the given URL and see what result you will get at your end! |
@PankajSavaliya We seem to be talking past each other. Please read this carefully. Format URL that yt-dlp provides is NOT always expected to load in browser as explained in https://github.com/yt-dlp/yt-dlp/wiki/FAQ#i-extracted-a-video-url-but-it-does-not-play-on-another-machine--in-my-web-browser. If that is your only issue, there is nothing to be done. If you also cannot download it with yt-dlp directly, you may provide verbose logs of the error to reopen the issue. |
DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
Checklist
Please make sure the question is worded well enough to be understood
Hi,
I'm having an issue with the pornhub website. Everything works perfectly and it extracts all the information, but when trying to download an mp4 URL with the 'https' protocol, I'm getting an 'Unauthorized' error.
can you please help me how to resolve it
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
No response
The text was updated successfully, but these errors were encountered: