Giter Site home page Giter Site logo

Comments (10)

Parthpatel2006 avatar Parthpatel2006 commented on July 19, 2024

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.

Parthpatel2006 avatar Parthpatel2006 commented on July 19, 2024

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

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,}) to login_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 to YoutubeDL params instead
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete 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.

AJKnabenbauer avatar AJKnabenbauer commented on July 19, 2024

@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.

Parthpatel2006 avatar Parthpatel2006 commented on July 19, 2024

@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.

bashonly avatar bashonly commented on July 19, 2024

someone just needs to open a PR of the patch in the OP and I will merge it

from yt-dlp.

Parthpatel2006 avatar Parthpatel2006 commented on July 19, 2024

What does that mean?

from yt-dlp.

Parthpatel2006 avatar Parthpatel2006 commented on July 19, 2024

@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.

seproDev avatar seproDev commented on July 19, 2024

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.

Parthpatel2006 avatar Parthpatel2006 commented on July 19, 2024

@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.

bashonly avatar bashonly commented on July 19, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.