Repository: yt-dlp
Issue: Unable to run PhantomJS binary (caused by TimeoutExpired) on pornhub.com
Labels: NSFW,site-bug,triage

### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

- [X] I understand that I will be **blocked** if I *intentionally* remove or skip any mandatory\* field

### Checklist

- [X] I'm reporting that yt-dlp is broken on a **supported** site
- [X] I've verified that I have **updated yt-dlp to nightly or master** ([update instructions](https://github.com/yt-dlp/yt-dlp#update-channels))
- [X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
- [X] I've checked that all URLs and arguments with special characters are [properly quoted or escaped](https://github.com/yt-dlp/yt-dlp/wiki/FAQ#video-url-contains-an-ampersand--and-im-getting-some-strange-output-1-2839-or-v-is-not-recognized-as-an-internal-or-external-command)
- [X] I've searched [known issues](https://github.com/yt-dlp/yt-dlp/issues/3766) and the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues **including closed ones**. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)
- [ ] I've read about [sharing account credentials](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#are-you-willing-to-share-account-details-if-needed) and I'm willing to share it if required

### Region

Europe

### Provide a description that is worded well enough to be understood

yt-dlp fails with a timeout while running PhantomJS. The error message provided by yt-dlp suggests opening an issue here.


### Provide verbose output that clearly demonstrates the problem

- [X] 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
- [X] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

```shell
[debug] Command-line config: ['-vU', '-P', 'Katty_West', 'https://www.pornhub.com/pornstar/katty-west']
[debug] Portable config "c:\sys\yt-dlp.conf": ['--write-description', '--write-info-json', '--write-playlist-metafiles', '--write-annotations', '--write-thumbnail', '--write-link', '--write-subs', '--write-auto-subs', '--convert-subs', 'srt', '--write-thumbnail', '-f', 'bestvideo[height<=?1080]+bestaudio/best', '-o', '%(upload_date,release_date,modified_date)s-%(title)s-%(id)s.%(ext)s', '-P', 'temp:c:/temp', '--retry-sleep', 'exp=1:30', '--cookies-from-browser', 'chrome']
[debug] Extracting cookies from: "C:\Users\_\AppData\Local\Google\Chrome\User Data\Profile 1\Network\Cookies"
[debug] Found local state file at "C:\Users\_\AppData\Local\Google\Chrome\User Data\Local State"
[debug] cookie version breakdown: {'v10': 1222, 'other': 0, 'unencrypted': 0}
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out cp1252 (No VT), error cp1252 (No VT), screen cp1252 (No VT)
[debug] yt-dlp version nightly@2024.02.04.232659 from yt-dlp/yt-dlp-nightly-builds [96d0f8c1c] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19045-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: ffmpeg 2023-11-20-git-e56d91f8a8-essentials_build-www.gyan.dev (setts), ffprobe 2023-11-20-git-e56d91f8a8-essentials_build-www.gyan.dev, phantomjs 2.1.1
[debug] Optional libraries: Cryptodome-3.20.0, brotli-1.1.0, certifi-2024.02.02, mutagen-1.47.0, requests-2.31.0, sqlite3-3.35.5, urllib3-2.2.0, websockets-12.0
[debug] Proxy map: {'ytdlp': 'socks5://_:_@se.socks.nordhold.net:1080'}
[debug] Request Handlers: urllib, requests, websockets
[debug] Loaded 1831 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-nightly-builds/releases/latest
[debug] [PornHubPagedVideoList] PhantomJS command line: phantomjs "--ssl-protocol=any" "C:\Users\_\AppData\Local\Temp\tmpht8gmjgu"
[debug] [PornHubPagedVideoList] PhantomJS command line: phantomjs "--ssl-protocol=any" "C:\Users\_\AppData\Local\Temp\tmpb7ovgb65"
ERROR: Executing JS on webpage failed: Unable to run PhantomJS binary (caused by TimeoutExpired(['phantomjs', '--ssl-protocol=any', 'C:\\Users\\_\\AppData\\Local\\Temp\\tmpb7ovgb65'], 10.0)); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "yt_dlp\extractor\openload.py", line 236, in execute
  File "yt_dlp\utils\_utils.py", line 868, in run
  File "yt_dlp\utils\_utils.py", line 854, in communicate_or_kill
  File "subprocess.py", line 1028, in communicate
  File "subprocess.py", line 1401, in _communicate
subprocess.TimeoutExpired: Command '['phantomjs', '--ssl-protocol=any', 'C:\\Users\\_\\AppData\\Local\\Temp\\tmpb7ovgb65']' timed out after 10.0 seconds

[debug] [PornHub] PhantomJS command line: phantomjs "--ssl-protocol=any" "C:\Users\_\AppData\Local\Temp\tmpmkc3g9jy"
ERROR: [PornHub] 659d9473861b8: Executing JS on webpage failed: Unable to run PhantomJS binary (caused by TimeoutExpired(['phantomjs', '--ssl-protocol=any', 'C:\\Users\\_\\AppData\\Local\\Temp\\tmpmkc3g9jy'], 10.0)); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "yt_dlp\extractor\common.py", line 718, in extract
  File "yt_dlp\extractor\pornhub.py", line 285, in _real_extract
  File "yt_dlp\extractor\pornhub.py", line 281, in dl_webpage
  File "yt_dlp\extractor\common.py", line 1121, in _download_webpage
  File "yt_dlp\extractor\common.py", line 1072, in download_content
  File "yt_dlp\extractor\pornhub.py", line 54, in _download_webpage_handle
  File "yt_dlp\extractor\openload.py", line 215, in get
  File "yt_dlp\extractor\openload.py", line 239, in execute

  File "yt_dlp\extractor\openload.py", line 236, in execute
  File "yt_dlp\utils\_utils.py", line 868, in run
  File "yt_dlp\utils\_utils.py", line 854, in communicate_or_kill
  File "subprocess.py", line 1028, in communicate
  File "subprocess.py", line 1401, in _communicate
subprocess.TimeoutExpired: Command '['phantomjs', '--ssl-protocol=any', 'C:\\Users\\_\\AppData\\Local\\Temp\\tmpmkc3g9jy']' timed out after 10.0 seconds

[debug] [PornHub] PhantomJS command line: phantomjs "--ssl-protocol=any" "C:\Users\_\AppData\Local\Temp\tmpkpcy04oj"

ERROR: Interrupted by user
```