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] youtube-dl says there are 0 videos in a playlist that has videos #17196

Closed
mjolnir870 opened this issue Aug 9, 2018 · 3 comments
Closed

Comments

@mjolnir870
Copy link

@mjolnir870 mjolnir870 commented Aug 9, 2018

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.08.04. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2018.08.04

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add the -v flag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

[debug] System config: []
[debug] User config: []
[debug] Custom config: ['--no-mtime', '--no-playlist', '--playlist-reverse', '-i', '-w']
[debug] Command-line args: ['--config-location', 'C:\\Users\\USERNAME\\COMPUTER\\Scripts\\youtube-dl-ondemand.conf', '--ffmpeg-location', 'C:\\Users\\USERNAME\\COMPUTER\\Apps\\ffmpeg\\bin\\ffmpeg.exe', '--download-archive', 'H:\\test\\~youtube-dl_history.txt', '-f', 'bestvideo+bestaudio/best', '--write-thumbnail', '--external-downloader', 'C:\\Users\\USERNAME\\COMPUTER\\Apps\\aria2\\64bit\\aria2c.exe', '--external-downloader-args', '--file-allocation=none -x 4 -k 1M', '--dump-pages', '-v', '-o', 'H:\\test\\%(title)s_%(id)s.%(ext)s', 'https://www.pornhub.com/users/camsoda/videos/public']
[debug] Encodings: locale cp1252, fs mbcs, out cp65001, pref cp1252
[debug] youtube-dl version 2018.08.04
[debug] Python version 3.4.4 (CPython) - Windows-8.1-6.3.9600
[debug] exe versions: ffmpeg N-90960-gbcff983dc3, ffprobe N-90960-gbcff983dc3
[debug] Proxy map: {}
[PornHubUserVideos] camsoda: Downloading page 1
[PornHubUserVideos] Dumping request to https://www.pornhub.com/users/camsoda/videos/public?page=1
PGh0bWw+PGhlYWQ+PHNjcmlwdCB0eXBlPSJ0ZXh0L2phdmFzY3JpcHQiPjwhLS0KZnVuY3Rpb24gbGVhc3RGYWN0b3IobikgewogaWYgKGlzTmFOKG4pIHx8ICFpc0Zpbml0ZShuKSkgcmV0dXJuIE5hTjsKIGlmICh0eXBlb2YgcGhhbnRvbSAhPT0gJ3VuZGVmaW5lZCcpIHJldHVybiAncGhhbnRvbSc7CiBpZiAodHlwZW9mIG1vZHVsZSAhPT0gJ3VuZGVmaW5lZCcgJiYgbW9kdWxlLmV4cG9ydHMpIHJldHVybiAnbm9kZSc7CiBpZiAobj09MCkgcmV0dXJuIDA7CiBpZiAobiUxIHx8IG4qbjwyKSByZXR1cm4gMTsKIGlmIChuJTI9PTApIHJldHVybiAyOwogaWYgKG4lMz09MCkgcmV0dXJuIDM7CiBpZiAobiU1PT0wKSByZXR1cm4gNTsKIHZhciBtPU1hdGguc3FydChuKTsKIGZvciAodmFyIGk9NztpPD1tO2krPTMwKSB7CiAgaWYgKG4laT09MCkgICAgICByZXR1cm4gaTsKICBpZiAobiUoaSs0KT09MCkgIHJldHVybiBpKzQ7CiAgaWYgKG4lKGkrNik9PTApICByZXR1cm4gaSs2OwogIGlmIChuJShpKzEwKT09MCkgcmV0dXJuIGkrMTA7CiAgaWYgKG4lKGkrMTIpPT0wKSByZXR1cm4gaSsxMjsKICBpZiAobiUoaSsxNik9PTApIHJldHVybiBpKzE2OwogIGlmIChuJShpKzIyKT09MCkgcmV0dXJuIGkrMjI7CiAgaWYgKG4lKGkrMjQpPT0wKSByZXR1cm4gaSsyNDsKIH0KIHJldHVybiBuOwp9CmZ1bmN0aW9uIGdvK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Videos] playlist camsoda: Collected 0 video ids (downloading 0 of them)
[download] Finished downloading playlist: camsoda

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):

Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.


Description of your issue, suggested solution and other information

Trying to download the videos from https://www.pornhub.com/users/camsoda/videos/public, but youtube-dl says there are 0 videos. Page works fine in a browser.

The above is commandline with -v and --dump-pages.

@parmjitv
Copy link
Contributor

@parmjitv parmjitv commented Sep 17, 2018

Looks to be resolved with latest youtube-dl version 2018.09.10 :

$ youtube-dl -vF 'https://www.pornhub.com/users/camsoda/videos/public'
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-vF', u'https://www.pornhub.com/users/camsoda/videos/public']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.09.10
[debug] Python version 2.7.9 (CPython) - Linux-3.16.0-4-686-pae-i686-with-debian-8.7
[debug] exe versions: ffmpeg 3.2.4-1, ffprobe 3.2.4-1
[debug] Proxy map: {}
[PornHubUserVideos] camsoda: Downloading page 1
[PornHubUserVideos] camsoda: Downloading page 2
[PornHubUserVideos] camsoda: Downloading page 3
[PornHubUserVideos] camsoda: Downloading page 4
[PornHubUserVideos] camsoda: Downloading page 5
[PornHubUserVideos] camsoda: Downloading page 6
[PornHubUserVideos] camsoda: Downloading page 7
[PornHubUserVideos] camsoda: Downloading page 8
[PornHubUserVideos] camsoda: Downloading page 9
[PornHubUserVideos] camsoda: Downloading page 10
[PornHubUserVideos] camsoda: Downloading page 11
[PornHubUserVideos] camsoda: Downloading page 12
[download] Downloading playlist: camsoda
[PornHubUserVideos] playlist camsoda: Collected 562 video ids (downloading 562 of them)
[download] Downloading video 1 of 562
[PornHub] ph5b9f2f00c264c: Downloading pc webpage
[info] Available formats for ph5b9f2f00c264c:
format code  extension  resolution note
240p         mp4        240p        400k 
480p         mp4        480p        600k 
720p         mp4        720p       1500k  (best)
[download] Downloading video 2 of 562
[PornHub] ph5b9c8a7fa650d: Downloading pc webpage
[info] Available formats for ph5b9c8a7fa650d:
format code  extension  resolution note
240p         mp4        240p        400k 
480p         mp4        480p        600k 
720p         mp4        720p       1500k  (best)
[download] Downloading video 3 of 562
[PornHub] ph5b9c85886cb5f: Downloading pc webpage
...
@dstftw dstftw closed this Sep 17, 2018
@mjolnir870
Copy link
Author

@mjolnir870 mjolnir870 commented Sep 18, 2018

It can still occur, and I think it's related to issue #17197. Basically I think PornHub begins serving you interstitial pages or putting pages on a delay if you make too many requests. You can convert the base64 in my log into html for the "loading..." page I was receiving. Once that starts happening youtube-dl will have trouble extracting a playlist or downloading a video.

I'm hopeful that resolving #17571 and #17573 will cut down on this happening so often, but it will still happen as long as youtube-dl can't handle the loading pages/delays.

@mariosemes
Copy link

@mariosemes mariosemes commented Aug 30, 2019

PornHub banns your IP for a while. Had the same problem. Reset router or contact your ISP to get a new IP and there you go. Works great again :)

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
4 participants
You can’t perform that action at this time.