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

Incomplete playlist download from pornhub #23095

Closed
DarkKnight4501 opened this issue Nov 15, 2019 · 1 comment
Closed

Incomplete playlist download from pornhub #23095

DarkKnight4501 opened this issue Nov 15, 2019 · 1 comment

Comments

@DarkKnight4501
Copy link

@DarkKnight4501 DarkKnight4501 commented Nov 15, 2019

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2019.11.05
  • 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

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--ignore-config', '--verbose', 'https://www.pornhub.com/playlist/43180982']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2019.11.05
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.18362
[debug] exe versions: none
[debug] Proxy map: {}
[PornHubPagedVideoList] playlist/43180982: Downloading page 1
[download] Downloading playlist: playlist/43180982
[PornHubPagedVideoList] playlist playlist/43180982: Collected 36 video ids (downloading 36 of them)
[download] Downloading video 1 of 36
[PornHub] 1060449039: Downloading pc webpage
[PornHub] 1060449039: 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\tmp7hc5a09v\build\youtube_dl\YoutubeDL.py", line 796, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp7hc5a09v\build\youtube_dl\extractor\common.py", line 530, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp7hc5a09v\build\youtube_dl\extractor\pornhub.py", line 235, in _real_extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp7hc5a09v\build\youtube_dl\extractor\common.py", line 1005, 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

Pornhub recently changed it's playlist formatting from multiple pages to a single page with more content being loaded as you scroll down. As a result, when trying to download a playlist using youtube-dl, only the first 36 videos are being picked up by the extractor, and not the complete playlist. I tried using VPN as well, and sometimes the extraction doesn't work at and at other times, the first 36 videos are extracted, but never the complete playlist.

@kuarthepirat

This comment has been minimized.

Copy link

@kuarthepirat kuarthepirat commented Nov 21, 2019

pornhub.patch.txt

I made a rough patch to fix this issue for me. It does probably not adhere to the coding standards of youtube-dl because I am not really good at python. But maybe someone can take it as a basis to fix this issue in the upstream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.