Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloading from a user/model/pornstar/channel on Pornhub results in "ERROR: Unable to extract encoded url" #23170

Closed
vegetos opened this issue Nov 21, 2019 · 0 comments
Labels

Comments

@vegetos
Copy link

@vegetos vegetos commented Nov 21, 2019

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2019.11.22
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones

Verbose log

[vegetos@pc ~]$  youtube-dl -v https://www.pornhub.com/channels/yonitale/videos
[debug] System config: ['-ciw', '--all-subs', '--convert-subs', 'srt', '--embed-subs', '--merge-output-format', 'mkv', '-o', '~/Downloads/%(title)s.%(ext)s']
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.pornhub.com/channels/yonitale/videos']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2019.11.22
[debug] Python version 3.8.0 (CPython) - Linux-5.3.12-arch1-1-x86_64-with-glibc2.2.5
[debug] exe versions: ffmpeg 4.2.1, ffprobe 4.2.1, rtmpdump 2.4
[debug] Proxy map: {}
[PornHubPagedVideoList] channels/yonitale/videos: Downloading page 1
[PornHubPagedVideoList] channels/yonitale/videos: Downloading page 2
[PornHubPagedVideoList] channels/yonitale/videos: Downloading page 3
[download] Downloading playlist: channels/yonitale/videos
[PornHubPagedVideoList] playlist channels/yonitale/videos: Collected 84 video ids (downloading 84 of them)
[download] Downloading video 1 of 84
[PornHub] ph5a75d1ab722e0: Downloading pc webpage
[PornHub] ph5a75d1ab722e0: 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; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/youtube_dl/YoutubeDL.py", line 796, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib/python3.8/site-packages/youtube_dl/extractor/common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "/usr/lib/python3.8/site-packages/youtube_dl/extractor/pornhub.py", line 233, in _real_extract
    assignments = self._search_regex(
  File "/usr/lib/python3.8/site-packages/youtube_dl/extractor/common.py", line 1005, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
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; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.


[vegetos@pc ~]$  youtube-dl -v https://www.pornhub.com/model/lovingrosiex/videos
[debug] System config: ['-ciw', '--all-subs', '--convert-subs', 'srt', '--embed-subs', '--merge-output-format', 'mkv', '-o', '~/Downloads/%(title)s.%(ext)s']
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.pornhub.com/model/lovingrosiex/videos']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2019.11.22
[debug] Python version 3.8.0 (CPython) - Linux-5.3.12-arch1-1-x86_64-with-glibc2.2.5
[debug] exe versions: ffmpeg 4.2.1, ffprobe 4.2.1, rtmpdump 2.4
[debug] Proxy map: {}
[PornHubPagedVideoList] model/lovingrosiex/videos: Downloading page 1
[download] Downloading playlist: model/lovingrosiex/videos
[PornHubPagedVideoList] playlist model/lovingrosiex/videos: Collected 13 video ids (downloading 13 of them)
[download] Downloading video 1 of 13
[PornHub] ph5d4cc4448a132: Downloading pc webpage
[PornHub] ph5d4cc4448a132: 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; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/youtube_dl/YoutubeDL.py", line 796, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib/python3.8/site-packages/youtube_dl/extractor/common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "/usr/lib/python3.8/site-packages/youtube_dl/extractor/pornhub.py", line 233, in _real_extract
    assignments = self._search_regex(
  File "/usr/lib/python3.8/site-packages/youtube_dl/extractor/common.py", line 1005, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
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; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.


[vegetos@pc ~]$  youtube-dl -v https://www.pornhub.com/pornstar/june-liu/videos/upload
[debug] System config: ['-ciw', '--all-subs', '--convert-subs', 'srt', '--embed-subs', '--merge-output-format', 'mkv', '-o', '~/Downloads/%(title)s.%(ext)s']
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.pornhub.com/pornstar/june-liu/videos/upload']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2019.11.22
[debug] Python version 3.8.0 (CPython) - Linux-5.3.12-arch1-1-x86_64-with-glibc2.2.5
[debug] exe versions: ffmpeg 4.2.1, ffprobe 4.2.1, rtmpdump 2.4
[debug] Proxy map: {}
[PornHubUserVideosUpload] june-liu: Downloading page 1
[download] Downloading playlist: june-liu
[PornHubUserVideosUpload] playlist june-liu: Collected 11 video ids (downloading 11 of them)
[download] Downloading video 1 of 11
[PornHub] ph5dd1ab8788192: Downloading pc webpage
[PornHub] ph5dd1ab8788192: 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; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/youtube_dl/YoutubeDL.py", line 796, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib/python3.8/site-packages/youtube_dl/extractor/common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "/usr/lib/python3.8/site-packages/youtube_dl/extractor/pornhub.py", line 233, in _real_extract
    assignments = self._search_regex(
  File "/usr/lib/python3.8/site-packages/youtube_dl/extractor/common.py", line 1005, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
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; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.


[vegetos@pc ~]$  youtube-dl -v https://www.pornhub.com/users/shamanalex/videos/public
[debug] System config: ['-ciw', '--all-subs', '--convert-subs', 'srt', '--embed-subs', '--merge-output-format', 'mkv', '-o', '~/Downloads/%(title)s.%(ext)s']
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.pornhub.com/users/shamanalex/videos/public']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2019.11.22
[debug] Python version 3.8.0 (CPython) - Linux-5.3.12-arch1-1-x86_64-with-glibc2.2.5
[debug] exe versions: ffmpeg 4.2.1, ffprobe 4.2.1, rtmpdump 2.4
[debug] Proxy map: {}
[PornHubPagedVideoList] users/shamanalex/videos/public: Downloading page 1
[download] Downloading playlist: users/shamanalex/videos/public
[PornHubPagedVideoList] playlist users/shamanalex/videos/public: Collected 13 video ids (downloading 13 of them)
[download] Downloading video 1 of 13
[PornHub] ph58d699efec1e5: Downloading pc webpage
[PornHub] ph58d699efec1e5: 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; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/youtube_dl/YoutubeDL.py", line 796, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib/python3.8/site-packages/youtube_dl/extractor/common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "/usr/lib/python3.8/site-packages/youtube_dl/extractor/pornhub.py", line 233, in _real_extract
    assignments = self._search_regex(
  File "/usr/lib/python3.8/site-packages/youtube_dl/extractor/common.py", line 1005, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
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; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Description

Attempting to download videos from a user/model/pornstar/channel page always results in this error. Attempting to download the same videos individually works fine.
I know 4bf568d is supposed to have fixed #22619 but the problem persists (I confirm once more that youtube-dl --version gives me "2019.11.22").

I could fix the issue by replacing /lib/python3.8/site-packages/youtube_dl/extractor/pornhub.py by the content of this file (that I found on GitHub, but can't remember where exactly): pornhub.py.txt

Here are all the URL I tested it with:
https://www.pornhub.com/channels/yonitale/videos
https://www.pornhub.com/model/lovingrosiex/videos
https://www.pornhub.com/pornstar/june-liu/videos/upload
https://www.pornhub.com/users/shamanalex/videos/public
As you can see in my logs, none of these URL work. I tried downloading a random single video from each of these, and it worked fine every time. After replacing my pornhub.py with the one I attached, I could download from these URL just fine, as well as individual videos.

@dstftw dstftw closed this Nov 22, 2019
@dstftw dstftw added the duplicate label Nov 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.