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

[youtube.com] Unable to download some videos #14027

Closed
Goothaa4 opened this issue Aug 25, 2017 · 3 comments
Closed

[youtube.com] Unable to download some videos #14027

Goothaa4 opened this issue Aug 25, 2017 · 3 comments

Comments

@Goothaa4
Copy link

@Goothaa4 Goothaa4 commented Aug 25, 2017

  • [x ] I've verified and I assure that I'm running youtube-dl 2017.08.23
    user@localhost:~$ youtube-dl --version
    2017.08.23

  • [x ] At least skimmed through the README, most notably the FAQ and BUGS sections

  • [ x] Searched the bugtracker for similar issues including closed ones

There doesn't seem to be any bugs like this already listed as of 25 Aug.

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

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


This is a bug report.

USER@LOCALHOST:~$ youtube-dl -v https://www.youtube.com/watch?v=6SJNVb0GnPI
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://www.youtube.com/watch?v=6SJNVb0GnPI']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.08.23
[debug] Python version 2.7.12 - Linux-4.4.0-92-generic-x86_64-with-Ubuntu-16.04-xenial
[debug] exe versions: ffmpeg 2.8.11-0ubuntu0.16.04.1, ffprobe 2.8.11-0ubuntu0.16.04.1, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] 6SJNVb0GnPI: Downloading webpage
[youtube] 6SJNVb0GnPI: Downloading video info 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 465, in main
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 455, in _real_main
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1958, in download
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 776, in extract_info
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 434, in extract
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1596, in _real_extract
ValueError: invalid literal for int() with base 10: ''

Description of your issue, suggested solution and other information

This only seems to happen on some youtube videos. It hasn't happened before. I don't quite understand the output so I don't know what else to say about it.

@ftc2
Copy link

@ftc2 ftc2 commented Aug 26, 2017

youtube says for that video:

The following content has been identified by the YouTube community as inappropriate or offensive to some audiences.

https://github.com/rg3/youtube-dl/blob/master/youtube_dl/extractor/youtube.py#L1596

it looks like 'inappropriate' videos don't display viewcount. maybe missing viewcount isn't properly handled yet, and it's trying to do int(None) or something like that.

@Hrxn
Copy link

@Hrxn Hrxn commented Aug 26, 2017

Duplicate of #14029

@ftc2
Copy link

@ftc2 ftc2 commented Aug 26, 2017

actually it's doing int(u''), but you knew that

@dstftw dstftw closed this Aug 26, 2017
dstftw added a commit that referenced this issue Aug 26, 2017
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
3 participants
You can’t perform that action at this time.