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

PornHub video title missing for private videos #24184

Closed
thisisbobsalmon opened this issue Feb 29, 2020 · 2 comments
Closed

PornHub video title missing for private videos #24184

thisisbobsalmon opened this issue Feb 29, 2020 · 2 comments

Comments

@thisisbobsalmon
Copy link

@thisisbobsalmon thisisbobsalmon commented Feb 29, 2020

Checklist

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

$ youtube-dl -v -i --cookies "/mnt/d/scripts/cookies.txt" https://www.pornhub.com/view_video.php?viewkey=ph5d7ca4e23a68e

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '-i', '--cookies', '/mnt/d/scripts/cookies.txt', 'https://www.pornhub.com/view_video.php?viewkey=ph5d7ca4e23a68e']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.02.16
[debug] Python version 3.6.9 (CPython) - Linux-4.19.84-microsoft-standard-x86_64-with-Ubuntu-18.04-bionic
[debug] exe versions: ffmpeg 3.4.6, ffprobe 3.4.6
[debug] Proxy map: {}
[PornHub] ph5d7ca4e23a68e: Downloading pc webpage
[PornHub] ph5d7ca4e23a68e: Downloading m3u8 information
[PornHub] ph5d7ca4e23a68e: Downloading m3u8 information
[PornHub] ph5d7ca4e23a68e: Downloading m3u8 information
[PornHub] ph5d7ca4e23a68e: Downloading m3u8 information
[PornHub] ph5d7ca4e23a68e: Downloading m3u8 information
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'https://dd1.phncdn.com/videos/201909/14/248305971/1080P_4000K_248305971.mp4?ttl=1582956514&ri=51200000&rs=400000&clientip=73.66.81.98&hash=f30f4e023a2adf59a884b86b998778c7'
[download] Destination:                         -ph5d7ca4e23a68e.mp4
[download] 100% of 27.35MiB in 00:01

Description

Private videos downloaded from PornHub don't seem to be extracting the video name properly. It looks like the issues here (#23649 and #23694) are the same issue, but the video that user provided did not have an issue.

This private video should be good example as the user is very quick to accept a request (might even be automatic)

youtube-dl -v -i --cookies "/mnt/d/scripts/cookies.txt" https://www.pornhub.com/view_video.php?viewkey=ph5d7ca4e23a68e

For completeness, here's the output without authentication with the cookies

youtube-dl -v -i https://www.pornhub.com/view_video.php?viewkey=ph5d7ca4e23a68e
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '-i', 'https://www.pornhub.com/view_video.php?viewkey=ph5d7ca4e23a68e']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.02.16
[debug] Python version 3.6.9 (CPython) - Linux-4.19.84-microsoft-standard-x86_64-with-Ubuntu-18.04-bionic
[debug] exe versions: ffmpeg 3.4.6, ffprobe 3.4.6
[debug] Proxy map: {}
[PornHub] ph5d7ca4e23a68e: Downloading pc webpage
ERROR: ph5d7ca4e23a68e: PornHub said: Sorry, but this video is private. You must be friends with FUCK-FUNK to view this video.
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/youtube_dl/YoutubeDL.py", line 796, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/lib/python3.6/dist-packages/youtube_dl/extractor/common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/lib/python3.6/dist-packages/youtube_dl/extractor/pornhub.py", line 186, in _real_extract
    expected=True, video_id=video_id)
youtube_dl.utils.ExtractorError: ph5d7ca4e23a68e: PornHub said: Sorry, but this video is private. You must be friends with FUCK-FUNK to view this video.
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Feb 29, 2020

You must provide account credentials.

@dstftw dstftw closed this Feb 29, 2020
@thisisbobsalmon
Copy link
Author

@thisisbobsalmon thisisbobsalmon commented Mar 2, 2020

Emailed cookies.txt to you, Sergey

@dstftw dstftw reopened this Mar 2, 2020
@dstftw dstftw closed this in 46cc54c Mar 2, 2020
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.