-
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
[Site Request] Pornhub Premium #18797
Comments
So if you use chrome, inspect the video then search for mp4. There will be direct links to all resolutions there. |
Hi, I have an account I could provide to help support this site. Is there a secure way to send credentials to whoever will be adding this support? |
I don't have access but do they really expose the links like that? |
Yes, there is a variable called flashvars_DIGITS that holds the video thumbnail (which has the date in the path), the video name, and all the links to various qualities. |
Hit "close and comment" instead of "comment", sorry. |
Very interested in this as well! :) |
I also found |
It always redirects even with cookies files |
Of course it does, the site isn't supported. |
Here's how while passing the right cookies: In the view_video.php: Javascript var: flashvars_5959595959 It has the quality_xxxxp attributes (1080p, 760p, etc). i.e.:
|
im actually kinda shocked this site wasn't one of the first sites people had working now i have to wait for my premium account to wear off to dl stuff again :'( |
Or you could just support it yourself, the instructions on how to are in this thread. |
im a little (or maybe a lot lol) slow.. but the only thing im seeing in this thread, is a way to get the direct link from the thumbnail? or is that what you meant? just going back after you find a video, pulling out the real link, then saving it? |
|
Did you guys review traffic on a pr0nhub premium video? For their premium content they use TS segments that are only a few seconds long. I don't think youtube-dl is setup to do this right now. |
youtube-dl downloads MPEG-TS perfectly fine. |
What is it now? TS? MP4? Both? |
Why was my comment deleted? Would've been great to get some feedback as to why the team decided to delete that comment. Perhaps, because I sent a URL for testing? Well I won't do that then. But if you check a free video from that site it's using MP4 in a single chunk. If you use the Premium service it uses TS segments. |
Probably because nothing new of value has been added to the conversation in here. I don't know, I haven't seen the comment. But that's the general guideline here, basically. The thing is, we now have conflicting statements in this thread. The contradiction whether those linked MP4 streams are full versions, or not. Both can't be true at the same time, obviously (exceptions apply). |
I see the mention of a |
This isn't even relevant, because both mp4 and mpeg-ts are supported and both formats should be extracted, if available |
I'm working on adding support for PornHubPremium.com. This requires overhauling the pornhub.py extractor. However, I've already got most of the functionality working. I just need to add support for downloading playlists and clean things up a bit. Subscribe to this issue for updates. |
any update on this? the old manual way doesn't seem to work anymore, or i just forgot how to do it correctly.. its been quite a while since i tried. but all the direct download urls seem to be empty example:
|
@frosty939 I have a working branch in my fork. I just need to finish reimplementing support for playlists. https://github.com/twaddington/youtube-dl/commits/phpremium I can try to carve out some time to wrap this up. |
@twaddington Hey man, I am somewhat new to this. Any help on how to use the pornhub premium extractor in youtube dl? I have your extractors.py and pornhub.py extractor file downloaded, not sure how to use them to get these missing links though. Any help is much appreciated. |
@twaddington, thanks for the work. I'm receiving the following errors. I will try to dig into it, but pretty unfamiliar with stuff at this point.
|
Your Feb 2nd commit works well. It is accurate, fast, and it logs in when it needs to. Great work. I am not, however, able to download a playlist. I may not have the syntax correct, but have tried more than a dozen of different combinations of in the command. I can say that it successfully downloads the first file of the playlist and then happily quits with out an error. I know, from current customer requests, that after each file is played/downloaded; the browser does some sort of a refresh. This is what prevents viewing a playlist (in full screen or "large windowed") natively on the site. At the end of each video, the browser "refreshes" and defaults to a 640x480 windowed display. If you have any advice for getting a playlist working, let me know. Thanks for getting this working! |
@8bitgigo playlist support is what's holding this up. I need to finish implementing that before I can put up a pull-request. There are a lot of different permutations to support. |
Surely you are some kind of god. It’s working well on single videos. Thank you again. |
Okay, playlist support is working and should be much improved. I will open a pull-request tomorrow to see about getting this work merged upstream into master. |
Still waiting for update |
Update: The maintainers don't seem likely to accept a large refactor of the pornhub extractor. So, I'm going to take a crack at a very limited implementation of pornhubpremium and pornhub login support to see if I can get it accepted. In the meantime, you can use the working implementation in my fork here: |
I have two more surgical changes ready to go that implement login support. Waiting on the first to be reviewed now. |
Quick update: I merged a PR that allows you to access pornhubpremium.com using a I have another PR up that adds full login support. I'm currently negotiating with the maintainers about the best way to implement this. |
While logged into Pornhub Premium, the user must use the domain name pornhubpremium.com. This means even publicly-available, free videos, start with the pornhubpremium.com domain name, however removing the premium part from the URL loads the public version. YT-DL should attempt to check a video on pornhub.com when it gets a pornhubpremium.com address, which should not require authentication. Also, because of the COVID-19 pandemic affecting the country, IP addresses from Italy are eligible for a free month of premium service. So if developers here have a VPN, you could take advantage of this for testing on the site. I tried this with PIA and it worked for me. |
@ampersham Hello, thank you for your reply.
I printed the webpage and it showed the 'login PHPremium' page. Could you share the command you ran to make it work? Thanks. EDIT : please ignore, my cookies were not properly set. |
Support for pornhubpremium logins is implemented and working in a branch, but not yet merged to master. If you're eager for this support please comment on the pull-request and ask the maintainers to merge the change. |
sorry know i was describing an issue related to PH premium. should i make a new seperate issue? |
https://www.pornhub.com/stayhome pornhub extended free premium to the whole world. |
yes, they do. i just downloaded a premium video using inspect. |
@RedKingSlayer didnt find any video links in inspect, @twaddington i got this error on your verison after deleting usr/local/bin/youtube-dl, installing from your fork using sudo python setup.py develop, and running youtube-dl -u xxxx -p xxxx https://www.pornhubpremium.com/view_video.php?viewkey=ph5d9720c6080d1 |
@ArghKevin on some videos, they try to hide the links by breaking them into pieces. This seems to be the case in your provided link. Look for 'var flashvars_XXXX' in script when you inspect. In this they have broken the links into various variables if you scroll down a bit. Looks something like this - var ra252658741ra75ra252658741ra75="_252658741";var raec0kiqe21era81raec0kiqe21era81="EC0KiqE" + "21E";var ra59saglzcdra98ra59saglzcdra98="59SAGLzC-D";var ramu1sayjcoira44ramu1sayjcoira44="mU1SayJ" + "coI";var raxmxo3egpwnra15raxmxo3egpwnra15="xMxo3Eg" + "Pwn";var ra20191004ra48ra20191004ra48="201910/04/";var rasydsayw1i8ra84rasydsayw1i8ra84="sYDSaYW1I8";var rar9yq3mtoera29rar9yq3mtoera29="r9Yq3mT" + "o_E";var rauzpodwlghura45rauzpodwlghura45="uZpOdWl" + "GHU";var ramp4vuy7vra77ramp4vuy7vra77=".mp4?vu" + "y7V";var rahttpscvra15rahttpscvra15="https://cv";var ragloaivbebra62ragloaivbebra62="GLOAI-vBeB";var ra7s5txdhwzjra51ra7s5txdhwzjra51="7s5TXdHwz" + "J";var rascvmzxztbxra100rascvmzxztbxra100="ScvmZXzTbX";var ra720p4000kra46ra720p4000kra46="720P_40" + "00K";var ra4lxv0r0me4ra38ra4lxv0r0me4ra38="4lXv0R0Me4";var rawdsg8xorsnra26rawdsg8xorsnra26="wdsg8xORsn";var raifqgweuxf4ra94raifqgweuxf4ra94="IFqgWEuXf4";var ra252658741ra21ra252658741ra21="25265" + "8741/";var rao0uyrcokgvra74rao0uyrcokgvra74="o0UYr" + "CokGV";var ra3wpra26ra3wpra26="3wP";var ra7ugga2ryvsra29ra7ugga2ryvsra29="7UGgA2ryV" + "s";var ra6e7jklhmw8ra18ra6e7jklhmw8ra18="6E7jKLhmW" + "8";var rajlipvwm9kira23rajlipvwm9kira23="JlIpvWM9k" + "I";var raphprcdncra95raphprcdncra95=".phprcdn.c";var rageml4zc7kra67rageml4zc7kra67="gEMl4Z_C7k";var raomvideosra17raomvideosra17="om/videos/";var rare2xkxqabsra36rare2xkxqabsra36="re2XKXQaBS";var raxwvkobwj9ra80raxwvkobwj9ra80="xWv_KobWJ9"; The order that has to be put in is given just there as well. If you know a little bit of JavaScript, its a piece of cake to put the link back together! |
@RedKingSlayer so in this case should i combine some if the =" " portions in order to complete the link? or do i need to look deeper into the elements in order to complete what seems to be the 720p link |
@ArghKevin yup, you have to find the order though ! Just beside this code there should be something like - What i do is, put this in console.log() command and the link gets printed onto my console. (I use visual studio code to run this .js file) Edit : Here, i combined the link for you this time - |
Which branch are you using? The full error in my branch should be the following:
If you don't see that full error text, then you're still invoking the wrong version of youtube-dl. |
Hey @twaddington Would you mind taking a look at the following Issue I raised (which someone immediately closed)? You seem keen on getting this site working Cheers |
@Agent076537 yep, that isn't a premium specific issue. That creator hasn't uploaded any videos, only other channels referencing her, so |
@Agent076537 additionally, it looks like downloading the playlist isn't working right: https://www.pornhub.com/view_video.php?viewkey=ph5e864fbb37980&pkey=sys%3Apornstar%3A306792%3Amr%3A0 This looks like a separate bug you could file. |
@twaddington thanks I'll do that. Is it worth making one for her premium page to be "https://www.pornhubpremium.com/pornstar/gabbie-carter?premium=1&o=mr" rather than /videos/premium or will that just get closed again ?? |
No. The problem is the same for pornhub.com and pornhubpremium.com. Premium is not supported by the maintainers yet so that's why they closed your issue. |
Please follow the guide below
x
into all the boxes [ ] relevant to your issue (like this:[x]
)Make sure you are using the latest version: run
youtube-dl --version
and ensure your version is 2019.01.02. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add the
-v
flag to your command line you run youtube-dl with (youtube-dl -v <your command line>
), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):
Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
Description of your issue, suggested solution and other information
Pornhub works with youtube-dl but Pornhub Premium does not. I can provide account credentials via email if necessary. Hopefully most of the code for the normal Pornhub can be used to support Pornhub Premium.
The text was updated successfully, but these errors were encountered: