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

Videos with Viewer Discretion/Verify Controversy crash youtube_dl #4016

Closed
TheBoroer opened this issue Oct 23, 2014 · 8 comments
Closed

Videos with Viewer Discretion/Verify Controversy crash youtube_dl #4016

TheBoroer opened this issue Oct 23, 2014 · 8 comments
Labels
bug

Comments

@TheBoroer
Copy link

@TheBoroer TheBoroer commented Oct 23, 2014

Some videos now have the Viewer Discretion prompt (Continue/Cancel) that breaks youtube_dl.

Example Video URL (WITH the prompt):
http://www.youtube.com/watch?v=EH6pXx5WjVI

If I add &bpctr=9999999999 to the end of the video URL and try it out in my browser, it will skip the viewer discretion continue/cancel prompt (even without being logged into YouTube).

If someone could please modify youtube_dl to include that parameter asap that would be much appreciated! Thank you in advance :)

Video URL (WITHOUT the prompt):
http://www.youtube.com/watch?v=EH6pXx5WjVI&bpctr=9999999999

Command used:
./youtube-link -f 140 -v -g http://www.youtube.com/watch?v=EH6pXx5WjVI

Results:

WARNING: unable to extract uploader nickname
WARNING: unable to extract categories; please report this issue on http://yt-dl.org/bug
Traceback (most recent call last):
  File "/usr/lib64/python2.6/runpy.py", line 122, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.6/runpy.py", line 34, in _run_code
    exec code in run_globals
  File "./youtube-link/__main__.py", line 18, in <module>
  File "./youtube-link/youtube_dl/__init__.py", line 431, in main
  File "./youtube-link/youtube_dl/__init__.py", line 421, in _real_main
  File "./youtube-link/youtube_dl/YoutubeDL.py", line 1067, in download
  File "./youtube-link/youtube_dl/YoutubeDL.py", line 524, in extract_info
  File "./youtube-link/youtube_dl/extractor/common.py", line 193, in extract
  File "./youtube-link/youtube_dl/extractor/youtube.py", line 953, in _real_extract
UnboundLocalError: local variable 'ytplayer_config' referenced before assignment
@skovachev
Copy link

@skovachev skovachev commented Nov 17, 2014

I would very much appreciate it if this could be resolved. I've been seeing the error very often in the last couple of weeks.

@phihag
Copy link
Contributor

@phihag phihag commented Nov 18, 2014

@skovachev Can you name a couple of example URLs where you encounter this issue? That would be quite helpful in fixing it. I'm certainly in no rush to add support for the video mentioned here which seems to be promoting Neo-Nazi ideas.

@skovachev
Copy link

@skovachev skovachev commented Nov 18, 2014

Certainly, here are a few:
https://www.youtube.com/watch?v=iIbrv79DeVQ
https://www.youtube.com/watch?v=YOteWI6z4t4
https://www.youtube.com/watch?v=JIrOIHZrEcE

Most of the videos have been marked as 'graphic' as they have to do with happenings in Syria, and with ISIS. I believe almost all of them are from various journalists, news agencies, and as such would not cause any moral issues as the one you've mentioned above.

@TheBoroer
Copy link
Author

@TheBoroer TheBoroer commented Nov 19, 2014

@phihag oops, sorry about the video. I didn't even look at what the video was about lol. One of my users tried converting this video and ran into some troubles so i just did the troubleshooting to see what was causing the video to get stuck. But yeah, like @skovachev said it happens to the graphic and controversial videos like the ones he posted above.

@iggyvolz
Copy link

@iggyvolz iggyvolz commented Nov 19, 2014

I feel like the best strategy for this would be to add a
--ignore-viewer-discretion parameter (or something like that), and have
youtube_dl spit out a "Viewer discretion is advised for this video. Please
call with the --ignore-viewer-discretion parameter" warning when the video
has this feature enabled without the parameter.

On Tue, Nov 18, 2014 at 9:12 PM, BlackPropeller notifications@github.com
wrote:

@phihag https://github.com/phihag oops, sorry about the video. I didn't
even look at what the video was about lol. One of my users tried converting
this video and ran into some troubles so i just did the troubleshooting to
see what was causing the video to get stuck. But yeah, like @skovachev
https://github.com/skovachev said it happens to the graphic and
controversial videos like the ones he posted above.


Reply to this email directly or view it on GitHub
#4016 (comment).

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Nov 23, 2014

This has been fixed in youtube-dl 2014.11.23. See our FAQ if you need help updating.

@kiroma
Copy link

@kiroma kiroma commented Aug 12, 2020

It seems this is no longer working. Attempting to download this video: https://www.youtube.com/watch?v=XkEGGLu_fNU results in ERROR: XkEGGLu_fNU: YouTube said: Unable to extract video data

@llacb47
Copy link

@llacb47 llacb47 commented Aug 12, 2020

@kiroma don't dig up old issues. It's bad and you should feel bad.
#26152

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