ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
132.2k stars 10.02k forks source link

[Pornhub] Unable to extract encoded URL #32448

Open alcxander opened 1 year ago

alcxander commented 1 year ago

Checklist

Verbose log

D:\Software\Youtube-dl>youtube-dl https://www.pornhub.com/view_video.php?viewkey=ph60a8e6fd7b54c --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.pornhub.com/view_video.php?viewkey=ph60a8e6fd7b54c', '--verbose']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2021.12.17
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.18362
[debug] exe versions: none
[debug] Proxy map: {}
[PornHub] ph60a8e6fd7b54c: Downloading pc webpage
[PornHub] ph60a8e6fd7b54c: Downloading tv webpage
ERROR: Unable to extract encoded url; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\YoutubeDL.py", line 815, in wrapper
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\YoutubeDL.py", line 836, in __extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\common.py", line 534, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\pornhub.py", line 401, in _real_extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\pornhub.py", line 338, in extract_js_vars
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\common.py", line 1012, in _search_regex
youtube_dl.utils.RegexNotFoundError: Unable to extract encoded url; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Description

trying to download this link, not working something wrong with the 'encoding' on the URL. not sure whats going on, went around and looked at other examples online like youtube-dl https://www.pornhub.com/view_video.php?viewkey=ph5a591d4cdaa82 (found on https://old.reddit.com/r/DataHoarder/comments/88444v/youtubedl_and_pornhub_channels/) which shows as working for them but no longer works for me same debug message above. so i assume something has changed on the site if previous URLS work but not for me now and I dont think i can make the command any simpler to test other things.

also updates to latest version: D:\Software\Youtube-dl>youtube-dl -U youtube-dl is up-to-date (2021.12.17)

dirkf commented 1 year ago

Reproducible with master code. There are outstanding PR changes and also recent updates that could be back-ported from yt-dlp.

alcxander commented 1 year ago

sorry @dirkf do you mean you want me to merge some previous PR's to do this or someone else is going to do this merge and republish to download?

dirkf commented 1 year ago

Someone has to review the existing code and potential updates and produce a PR (and not then close it in a strop). If it's not me doing that, it may happen sooner.