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] Dowloads form Pronhub fail sometimes with TypeError: int() argument must be a string or a number, not 'list' #20403

Closed
throwaway75 opened this issue Mar 18, 2019 · 1 comment

Comments

@throwaway75
Copy link

@throwaway75 throwaway75 commented Mar 18, 2019

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

  • [ x] I've verified and I assure that I'm running youtube-dl 2019.03.18

Before submitting an issue make sure you have:

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

What is the purpose of your issue?

  • [x ] Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://www.pornhub.com/view_video.php?viewkey=ph5c539060057b7']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.03.18
[debug] Python version 2.7.15+ (CPython) - Linux-4.18.0-16-generic-x86_64-with-Ubuntu-18.10-cosmic
[debug] exe versions: ffmpeg 4.0.2-2, ffprobe 4.0.2-2, phantomjs 2.1.1, rtmpdump 2.4
[debug] Proxy map: {}
[PornHub] ph5c539060057b7: Downloading pc webpage
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/bin/youtube-dl/__main__.py", line 19, in <module>
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 472, in main
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 462, in _real_main
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2006, in download
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 794, in extract_info
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 529, in extract
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/pornhub.py", line 225, in _real_extract
  File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 1924, in int_or_none
TypeError: int() argument must be a string or a number, not 'list'

Description of your issue, suggested solution and other information

Sometimes a download from pornhub.com fails with the stacktrace shown above. This does not always happen and does not depend on the video. Running the same command multiple times fails sometimes and succeeds sometimes.
Dump of a failed download: https://gist.github.com/throwaway75/c67b7f30a269495aff3bafecaf884d7c

@rolyli
Copy link

@rolyli rolyli commented Mar 22, 2019

Bug is easy to replicate. It happens like 1 out of 10 times.

It is due to extra media definitions that leds to some kind of a manifest. Can someone shed light on what this is?

{'defaultQuality': False, 'format': 'dash', 'videoUrl': 'https://cvc.phncdn.com/dash/videos/201902/01/205041911/,720P_4000K,480P_2000K,240P_400K,_205041911.mp4.urlset/manifest.mpd?chv3GnoUsCyDFYUIyUqLVEjCSCx7EuHYjYUr-0cpw0V8WjY7oVSARBn-O6DnOYQ24mtfZk15JMTh12DGytmbHooJwUDRe7mqlHkj5JN4hAQlFxiUWrZm9gc2yFHVarR0j-IxRj9LrT6luHPoa_gD6cRltLLh0A9qYwf98kV28snrY3S8NLY', 'quality': [720, 480, 240]}

dstftw added a commit that referenced this issue Mar 22, 2019
@dstftw dstftw closed this in b8526c7 Mar 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.