Comments (10)
Hey I don’t know anything about GitHub I just searched on google cause I had the same problem and found this and just made this account to comment this, can you help me to get back into my account as well? I also used to login with my username and password and not email.
from yt-dlp.
DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
- I understand that I will be blocked if I intentionally remove or skip any mandatory* field
Checklist
- I'm reporting that yt-dlp is broken on a supported site
- I've verified that I have updated yt-dlp to nightly or master (update instructions)
- I've checked that all provided URLs are playable in a browser with the same IP and same login details
- I've checked that all URLs and arguments with special characters are properly quoted or escaped
- I've searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
- I've read the guidelines for opening an issue
- I've read about sharing account credentials and I'm willing to share it if required
Region
USA
Provide a description that is worded well enough to be understood
Pornhub recently updated their login page to only login using email instead of username. Since this change it is now not possible to login (even when using known good credentials).
I tracked down a login form field name change that is causing the issue, and was able to fix it by updating the field name.
In the yt_dlp->extractor->pornhub.py _login method, the login form fields that are updated should be updated from
login_form.update({'username' : username,'password': password,})
tologin_form.update({'email' : username,'password': password,})
.I am not super familiar with github so sorry this isn't a pull request.
P.S. verbose log attached is an example of pre-update failure. After the update I can confirm it worked.
Provide verbose output that clearly demonstrates the problem
- Run your yt-dlp command with -vU flag added (
yt-dlp -vU <your command line>
)- If using API, add
'verbose': True
toYoutubeDL
params instead- Copy the WHOLE output (starting with
[debug] Command-line config
) and insert it belowComplete Verbose Output
"C:\Program Files\Python312\python.exe" C:\Dev\pythonProject3\main.py [debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8 (No VT), error utf-8 (No VT), screen utf-8 (No VT) [debug] yt-dlp version [email protected] from yt-dlp/yt-dlp [f10589e34] (pip) API [debug] params: {'forceprint': {'video': ['filename']}, 'username': '#####HIDDEN INTENTIONALLY#####', 'password': '#####HIDDEN INTENTIONALLY#####', 'verbose': True, 'writethumbnail': True, 'embedthumbnail': True, 'postprocessors': [{'key': 'FFmpegMetadata', 'add_metadata': True}, {'key': 'EmbedThumbnail'}], 'outtmpl': {'default': 'C:\\Group playlist downloaded\\2024-04-18\\%(title)s_%(id)s.%(ext)s'}, 'updatetime': True, 'sleep_interval': 5, 'max_sleep_interval': 15, 'retry_sleep_functions': {'fragment': 60, 'http': 5, 'file_access': 1}, 'retries': 500, 'fragment_retries': 10, 'file_access_retries': 500, 'abort_on_unavailable_fragments': True, 'concurrent_fragment_downloads': 2, 'http_chunk_size': 25000000, 'buffersize': 1000000000000, 'throttledratelimit': 4000000, 'download_archive': 'D:\\archive.txt', 'overwrites': False, 'compat_opts': set(), 'http_headers': {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': 'en-us,en;q=0.5', 'Sec-Fetch-Mode': 'navigate'}} [debug] Python 3.12.2 (CPython AMD64 64bit) - Windows-11-10.0.22635-SP0 (OpenSSL 3.0.13 30 Jan 2024) [debug] exe versions: ffmpeg 6.1.1-full_build-www.gyan.dev (setts), ffprobe 6.1.1-full_build-www.gyan.dev [debug] Optional libraries: Cryptodome-3.20.0, brotli-1.1.0, certifi-2023.11.17, mutagen-1.47.0, requests-2.31.0, sqlite3-3.43.1, urllib3-2.1.0, websockets-12.0 [debug] Proxy map: {} [debug] Request Handlers: urllib, requests, websockets [debug] Loaded 1798 extractors [debug] Loading archive file 'D:\\archive.txt' [PornHub] Extracting URL: https://www.pornhubpremium.com/view_video.php?viewkey=65bff9e374ae2 [PornHub] Downloading pornhubpremium login page [PornHub] Logging in to pornhubpremium ERROR: [PornHub] 65bff9e374ae2: Unable to login: Invalid entry. Use a valid email address to log in. File "C:\Users\Andrew\AppData\Roaming\Python\Python312\site-packages\yt_dlp\extractor\common.py", line 718, in extract ie_result = self._real_extract(url) ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Andrew\AppData\Roaming\Python\Python312\site-packages\yt_dlp\extractor\pornhub.py", line 273, in _real_extract self._login(host) File "C:\Users\Andrew\AppData\Roaming\Python\Python312\site-packages\yt_dlp\extractor\pornhub.py", line 117, in _login raise ExtractorError( Traceback (most recent call last): File "C:\Users\Andrew\AppData\Roaming\Python\Python312\site-packages\yt_dlp\YoutubeDL.py", line 1587, in wrapper return func(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Andrew\AppData\Roaming\Python\Python312\site-packages\yt_dlp\YoutubeDL.py", line 1722, in __extract_info ie_result = ie.extract(url) ^^^^^^^^^^^^^^^ File "C:\Users\Andrew\AppData\Roaming\Python\Python312\site-packages\yt_dlp\extractor\common.py", line 718, in extract ie_result = self._real_extract(url) ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Andrew\AppData\Roaming\Python\Python312\site-packages\yt_dlp\extractor\pornhub.py", line 273, in _real_extract self._login(host) File "C:\Users\Andrew\AppData\Roaming\Python\Python312\site-packages\yt_dlp\extractor\pornhub.py", line 117, in _login raise ExtractorError( yt_dlp.utils.ExtractorError: [PornHub] 65bff9e374ae2: Unable to login: Invalid entry. Use a valid email address to log in. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Dev\pythonProject3\main.py", line 109, in <module> ydl.download(urls) File "C:\Users\Andrew\AppData\Roaming\Python\Python312\site-packages\yt_dlp\YoutubeDL.py", line 3541, in download self.__download_wrapper(self.extract_info)( File "C:\Users\Andrew\AppData\Roaming\Python\Python312\site-packages\yt_dlp\YoutubeDL.py", line 3516, in wrapper res = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Andrew\AppData\Roaming\Python\Python312\site-packages\yt_dlp\YoutubeDL.py", line 1576, in extract_info return self.__extract_info(url, self.get_info_extractor(key), download, extra_info, process) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Andrew\AppData\Roaming\Python\Python312\site-packages\yt_dlp\YoutubeDL.py", line 1605, in wrapper self.report_error(str(e), e.format_traceback()) File "C:\Users\Andrew\AppData\Roaming\Python\Python312\site-packages\yt_dlp\YoutubeDL.py", line 1054, in report_error self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs) File "C:\Users\Andrew\AppData\Roaming\Python\Python312\site-packages\yt_dlp\YoutubeDL.py", line 993, in trouble raise DownloadError(message, exc_info) yt_dlp.utils.DownloadError: ERROR: [PornHub] 65bff9e374ae2: Unable to login: Invalid entry. Use a valid email address to log in. Process finished with exit code 1
I’m not sure if u get notified by my comment or how it works hope u see this
from yt-dlp.
@Parthpatel2006 For a temporary work around - if you go to the location you installed yt_dlp to you will need to edit a python file.
File the file yt_dlp->extractor->pornhub.py
Inside that file there is a function called _login. Within that function you will need to find login_form.update({'username' : username,'password': password,})
and update it to be login_form.update({'email' : username,'password': password,})
.
Then save the file and it should work. Just make sure update your credentials so that they use the email instead of username.
from yt-dlp.
@pukkandan @AJKnabenbauer @bashonly @haraldmartin do any of y’all know if y’all can help me with this concerning my comment above of me not knowing anything about GitHub and coding but having the same login issue?
from yt-dlp.
someone just needs to open a PR of the patch in the OP and I will merge it
from yt-dlp.
What does that mean?
from yt-dlp.
@AJKnabenbauer i don't know what that means. Could I give you my username and password and u do it? Not sure what a yt_dlp is is or anything (also I had just seen that u sent that message my bad)
from yt-dlp.
Not sure what a yt_dlp is is or anything
@Parthpatel2006 Where are you seeing this issue then? This bug tracker is purely for yt-dlp, a free and open source command line video downloader. If you are not using yt-dlp, you are in the wrong place.
A PR means Pull Request. Someone needs to properly send in the above code changes, and once merged this bug will be fixed.
from yt-dlp.
@seproDev oh i thought this was a way to log in using only your username and password. Since i don’t know my email and had been using my username to sign into pornhub for past couple years but now it requires you to sign in with email. (Is there any way you can make it to where you can sign in with your username so I can access my account?)
from yt-dlp.
@Parthpatel2006 no, the site has changed how login works. This issue tracker is for yt-dlp, we are not affiliated with the site in any way and have no control over how their login works.
This issue is about how the site's change broke yt-dlp, and how yt-dlp needs to adjust to the new email/password login method.
from yt-dlp.
Related Issues (20)
- Get the output file name in lower case HOT 1
- Add support for site https://listeamed.net/ HOT 1
- The same link and command download much larger files on Linux than on Windows. HOT 4
- False test failure of download test for m3u8 format when first segment is small HOT 2
- "orf:on saves audio track with wrong language" - how to report this properly? HOT 3
- Does anyone have all the historical videos of 하루S2 sol3712 ? I want to buy them for free. HOT 1
- twitter changed domain name to x.com HOT 1
- Attempt to download from single Patreon membership instead crawls all memberships available to user HOT 4
- x.com (twitter) gives "unsupported URL" HOT 1
- twitch subscriber only VODs HOT 2
- convertsubtitles problem HOT 2
- Beeg broken HOT 1
- New (5/23/24) NPR media player not supported HOT 1
- can not download private youtube videos HOT 1
- Broken Json Metadata download HOT 1
- [MLBTV] 745415: Unable to download JSON metadata: HTTP Error 400: Bad Request (caused by <HTTPError 400: Bad Request>)
- [Error] [brightcove:new] Unable to download webpage: timed out (caused by TransportError('timed out')) HOT 3
- YT HOT 1
- TubiTV HTTP Error 401: Unauthorized HOT 1
- Falling back to generic extractor for voyo.nova.cz
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yt-dlp.