RoyalFlyBy / PornHubDownloader

A pornhub.com downloader that allows you to login so you can download everything you have access to. including but not limited to private videos, 1080p or higher resolutions, premium videos and even paid videos that you own.
GNU General Public License v3.0
96 stars 37 forks source link

exit status 1 #17

Open Parent678761 opened 1 year ago

Parent678761 commented 1 year ago

I used to get the occasional "exit status 1" message, but now it happens every time. It was all working beautifully until around April 2023. Does anyone know how to run in verbose or how to show debugging info.

I'm not sure if I'm the only one with this issue, so I figured I would check in here first.

RoyalFlyBy commented 1 year ago

Add -debug to your command, it will generate a log file with more information. Also try different videos/links, if you can reproduce it with a random video you can send that link here and I will debug it from my side too. You may want to try to run the program while a VPN is on, sometimes PH can get weird like that

Parent678761 commented 1 year ago

I've tried with a VPN but now I'm getting : Content-type not supported: txt/html; charset=UTF-8

Without the VPN I get: exit status 1

today I tried on another PC with the same results (albeit with the same internet connection and VPN provider).

Maybe my IP is banned. Maybe the free VPN I used has too high latency.. not sure. Either of those errors used to pop up occasionally, but nowadays its every time.

Also, I can't get "debug"to work. Where do I insert this in the command line when running the app?

Many thanks. Can anyone elsse confirm it is still working for them?

RoyalFlyBy commented 1 year ago

The debug flag can be used like this: ./pornhubdownloader -video "https://www.pornhub.com/view_video.php?viewkey=ph6378a03c46eb5" -debug

I did notice an error occurring so I am doing some tests with the underlying library the program actually uses to connect to pornhub.

Basically I am seeing an invalid username/password error even when not logged in... Could be some API change, no big deal.

RoyalFlyBy commented 1 year ago

Ah I finalized my testing faster than expected, looks like PornHub killed their android app when new ownership came in. This program was based on the API that the Android app used so now it's broken all together.

I guess I will have to go back to web scraping based solutions... Sad life. This kind of rewrite will take a while especially since I work fulltime again.

RoyalFlyBy commented 1 year ago

From my initial research on the PH web scraping implementation I will need a HLS downloading solution, my HTTP client already has that built-in but I may need some kind of browser randomization and TLS fingerprint spoofing as well to prevent captcha's from showing up fast. On the flip-side, now I don't necessarily have to implement a login function anymore because I can just allow people to import their cookies from their browser to login.

One big drawback of web scraping is that the website HTML code is prone to changing often and without any warning whereas a REST API usually doesn't change much over time.

Parent678761 commented 1 year ago

First off I want to thank you so much for all your work. Then I want to apologise, because I was writing about chaturbate downloader, in the wrong area.. (Youtube-dl seems to work fine for CLI for Pornhub videos). P.s. how do we send you donations?

RoyalFlyBy commented 1 year ago

I highly appreciate that, I have a doc update planned soon to add donation links and even a Discord server or Telegram channel.