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

this video contains content from who has blocked it from display on this website - WATCH on YOUTUBE #4195

Closed
arlindpajaziti opened this issue Nov 14, 2014 · 2 comments

Comments

@arlindpajaziti
Copy link

@arlindpajaziti arlindpajaziti commented Nov 14, 2014

this video https://www.youtube.com/watch?v=_5K4yxcuRO4 cant be downloaded with youtube-dl
also when you embed this video to any site you see this message
this video contains content from who has blocked it from display on this website - WATCH on YOUTUBE


[root@server ~]# youtube-dl https://www.youtube.com/watch?v=_5K4yxcuRO4
[youtube] Setting language
[youtube] Confirming age
[youtube] _5K4yxcuRO4: Downloading webpage
[youtube] _5K4yxcuRO4: Downloading video info webpage
[youtube] _5K4yxcuRO4: Extracting video information
[youtube] _5K4yxcuRO4: Encrypted signatures detected.
[youtube] _5K4yxcuRO4: Downloading js player vflBuyJ2c
ERROR: Signature extraction failed: Traceback (most recent call last):
File "/usr/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 533, in _decr ypt_signature
video_id, player_url, s
File "/usr/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 447, in _extr act_signature_function
res = self._parse_sig_js(code)
File "/usr/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 508, in _pars e_sig_js
'Initial JS player signature function name')
File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 424, in _searc h_regex
raise RegexNotFoundError('Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract Initial JS player signature function name; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type youtube-dl -U to update.
(caused by RegexNotFoundError(u'Unable to extract \x1b[0;34mInitial JS player s ignature function name\x1b[0m; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete o utput. Make sure you are using the latest version; type youtube-dl -U to updat e.',)); please report this issue on https://yt-dl.org/bug . Be sure to call yout ube-dl with the --verbose flag and include its complete output. Make sure you ar e using the latest version; type youtube-dl -U to update.
[root@server ~]#

@phihag
Copy link
Contributor

@phihag phihag commented Nov 14, 2014

As mentioned in the output,

Be sure to call youtube-dl with the --verbose flag and include its complete output.
Make sure you are using the latest version.

Since YouTube changed their player quite recently, I suspect your version of youtube-dl is simply out of date. I'm therefore closing this issue. If you are running the latest version of youtube-dl, please post the complete output you get when you add --verbose or -v to the command line. We'll reopen this issue then. Thanks!

By the way, it is a bad idea to run applications as root. While we take great care to make sure youtube-dl does not suffer from any security vulnerabilities, youtube-dl should generally be run as non-root, unless you are updating.

@phihag phihag closed this Nov 14, 2014
@ryanakca
Copy link

@ryanakca ryanakca commented May 25, 2015

I can comment on this with the verbose output using the most recent version available:

ryan@nu:~/Videos2/Youtube/Movies$ youtube-dl --verbose --list-subs https://www.youtube.com/watch?v=sfjFnOpnh_c
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--verbose', u'--list-subs', u'https://www.youtube.com/watch?v=sfjFnOpnh_c']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.05.20
[debug] Python version 2.7.10rc1 - Linux-4.0.0-1-amd64-x86_64-with-debian-stretch-sid
[debug] exe versions: ffmpeg 2.6.3-1, ffprobe 2.6.3-1, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] sfjFnOpnh_c: Downloading webpage
[youtube] sfjFnOpnh_c: Downloading embed webpage
[youtube] sfjFnOpnh_c: Refetching age-gated info webpage
ERROR: sfjFnOpnh_c: YouTube said: This video contains content from Mosfilm, who has blocked it from display on this website.<br/><u><a href='http://www.youtube.com/watch?v=sfjFnOpnh_c&feature=player_embedded' target='_blank'>Watch on YouTube</a></u>
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl-2015.5.20-py2.7.egg/youtube_dl/YoutubeDL.py", line 649, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl-2015.5.20-py2.7.egg/youtube_dl/extractor/common.py", line 273, in extract
    return self._real_extract(url)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl-2015.5.20-py2.7.egg/youtube_dl/extractor/youtube.py", line 906, in _real_extract
    expected=True, video_id=video_id)
ExtractorError: sfjFnOpnh_c: YouTube said: This video contains content from Mosfilm, who has blocked it from display on this website.<br/><u><a href='http://www.youtube.com/watch?v=sfjFnOpnh_c&feature=player_embedded' target='_blank'>Watch on YouTube</a></u>

ryan@nu:~/Videos2/Youtube/Movies$ youtube-dl --verbose -t https://www.youtube.com/watch?v=sfjFnOpnh_c
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--verbose', u'-t', u'https://www.youtube.com/watch?v=sfjFnOpnh_c']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.05.20
[debug] Python version 2.7.10rc1 - Linux-4.0.0-1-amd64-x86_64-with-debian-stretch-sid
[debug] exe versions: ffmpeg 2.6.3-1, ffprobe 2.6.3-1, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] sfjFnOpnh_c: Downloading webpage
[youtube] sfjFnOpnh_c: Downloading embed webpage
[youtube] sfjFnOpnh_c: Refetching age-gated info webpage
ERROR: sfjFnOpnh_c: YouTube said: This video contains content from Mosfilm, who has blocked it from display on this website.<br/><u><a href='http://www.youtube.com/watch?v=sfjFnOpnh_c&feature=player_embedded' target='_blank'>Watch on YouTube</a></u>
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl-2015.5.20-py2.7.egg/youtube_dl/YoutubeDL.py", line 649, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl-2015.5.20-py2.7.egg/youtube_dl/extractor/common.py", line 273, in extract
    return self._real_extract(url)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl-2015.5.20-py2.7.egg/youtube_dl/extractor/youtube.py", line 906, in _real_extract
    expected=True, video_id=video_id)
ExtractorError: sfjFnOpnh_c: YouTube said: This video contains content from Mosfilm, who has blocked it from display on this website.<br/><u><a href='http://www.youtube.com/watch?v=sfjFnOpnh_c&feature=player_embedded' target='_blank'>Watch on YouTube</a></u>
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.