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] Cannot identify player 'https://www.youtube.com/yts/jsbin/player-vflppxuSE/en_US/base.js' #12885

Closed
amoschu opened this issue Apr 28, 2017 · 43 comments
Labels

Comments

@amoschu
Copy link

@amoschu amoschu commented Apr 28, 2017

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like that [x])
  • Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.04.26. 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 2017.04.26

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • 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


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

$ youtube-dl -f "bestaudio[ext!=webm]/best[ext!=webm]" --verbose 'https://www.youtube.com/watch?v=0VF0BlXP-0Y'
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-f', u'bestaudio[ext!=webm]/best[ext!=webm]', u'--verbose', u'https://www.youtube.com/watch?v=0VF0BlXP-0Y']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.04.26
[debug] Python version 2.7.12 - CYGWIN_NT-6.1-2.6.1-0.305-5-3-x86_64-64bit
[debug] exe versions: ffmpeg N-82225-gb4e9252
[debug] Proxy map: {}
[youtube] 0VF0BlXP-0Y: Downloading webpage
[youtube] 0VF0BlXP-0Y: Downloading video info webpage
[youtube] 0VF0BlXP-0Y: Extracting video information
WARNING: unable to extract html5 player; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
[youtube] {43} signature length 40.40, html5 player None
ERROR: Signature extraction failed: Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py", line 1081, in _decrypt_signature
    video_id, player_url, s
  File "/usr/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py", line 969, in _extract_signature_function
    raise ExtractorError('Cannot identify player %r' % player_url)
ExtractorError: Cannot identify player u'https://www.youtube.com/yts/jsbin/player-vflppxuSE/en_US/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using thelatest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
 (caused by ExtractorError(u"Cannot identify player u'https://www.youtube.com/yts/jsbin/player-vflppxuSE/en_US/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to callyoutube-dl with the --verbose flag and include its complete output.",)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py", line 1081, in _decrypt_signature
    video_id, player_url, s
  File "/usr/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py", line 969, in _extract_signature_function
    raise ExtractorError('Cannot identify player %r' % player_url)
ExtractorError: Cannot identify player u'https://www.youtube.com/yts/jsbin/player-vflppxuSE/en_US/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using thelatest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 760, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib/python2.7/site-packages/youtube_dl/extractor/common.py", line 429, in extract
    ie_result = self._real_extract(url)
  File "/usr/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py", line 1642, in _real_extract
    encrypted_sig, video_id, player_url, age_gate)
  File "/usr/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py", line 1091, in _decrypt_signature
    'Signature extraction failed: ' + tb, cause=e)
ExtractorError: Signature extraction failed: Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py", line 1081, in _decrypt_signature
    video_id, player_url, s
  File "/usr/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py", line 969, in _extract_signature_function
    raise ExtractorError('Cannot identify player %r' % player_url)
ExtractorError: Cannot identify player u'https://www.youtube.com/yts/jsbin/player-vflppxuSE/en_US/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using thelatest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
 (caused by ExtractorError(u"Cannot identify player u'https://www.youtube.com/yts/jsbin/player-vflppxuSE/en_US/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to callyoutube-dl with the --verbose flag and include its complete output.",)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
@cjsanjay

This comment has been minimized.

Copy link

@cjsanjay cjsanjay commented Apr 28, 2017

Facing similar issue
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.04.26
[debug] Python version 3.5.2 - Linux-4.4.0-72-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] I6LnxOHZ14I: Downloading webpage
[youtube] I6LnxOHZ14I: Downloading video info webpage
[youtube] I6LnxOHZ14I: Extracting video information
unable to extract html5 player; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
[youtube] {22} signature length 40.40, html5 player None
ERROR: Signature extraction failed: Traceback (most recent call last):
File "/home/sanjay/.local/lib/python3.5/site-packages/youtube_dl/extractor/youtube.py", line 1081, in _decrypt_signature
video_id, player_url, s
File "/home/sanjay/.local/lib/python3.5/site-packages/youtube_dl/extractor/youtube.py", line 969, in _extract_signature_function
raise ExtractorError('Cannot identify player %r' % player_url)
youtube_dl.utils.ExtractorError: Cannot identify player 'https://www.youtube.com/yts/jsbin/player-vflppxuSE/en_US/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
(caused by ExtractorError("Cannot identify player 'https://www.youtube.com/yts/jsbin/player-vflppxuSE/en_US/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.",)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/home/sanjay/.local/lib/python3.5/site-packages/youtube_dl/extractor/youtube.py", line 1081, in _decrypt_signature
video_id, player_url, s
File "/home/sanjay/.local/lib/python3.5/site-packages/youtube_dl/extractor/youtube.py", line 969, in _extract_signature_function
raise ExtractorError('Cannot identify player %r' % player_url)
youtube_dl.utils.ExtractorError: Cannot identify player 'https://www.youtube.com/yts/jsbin/player-vflppxuSE/en_US/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/home/sanjay/.local/lib/python3.5/site-packages/youtube_dl/extractor/youtube.py", line 1081, in _decrypt_signature
video_id, player_url, s
File "/home/sanjay/.local/lib/python3.5/site-packages/youtube_dl/extractor/youtube.py", line 969, in _extract_signature_function
raise ExtractorError('Cannot identify player %r' % player_url)
youtube_dl.utils.ExtractorError: Cannot identify player 'https://www.youtube.com/yts/jsbin/player-vflppxuSE/en_US/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/sanjay/.local/lib/python3.5/site-packages/youtube_dl/YoutubeDL.py", line 760, in extract_info
ie_result = ie.extract(url)
File "/home/sanjay/.local/lib/python3.5/site-packages/youtube_dl/extractor/common.py", line 429, in extract
ie_result = self._real_extract(url)
File "/home/sanjay/.local/lib/python3.5/site-packages/youtube_dl/extractor/youtube.py", line 1642, in _real_extract
encrypted_sig, video_id, player_url, age_gate)
File "/home/sanjay/.local/lib/python3.5/site-packages/youtube_dl/extractor/youtube.py", line 1091, in _decrypt_signature
'Signature extraction failed: ' + tb, cause=e)
youtube_dl.utils.ExtractorError: Signature extraction failed: Traceback (most recent call last):
File "/home/sanjay/.local/lib/python3.5/site-packages/youtube_dl/extractor/youtube.py", line 1081, in _decrypt_signature
video_id, player_url, s
File "/home/sanjay/.local/lib/python3.5/site-packages/youtube_dl/extractor/youtube.py", line 969, in _extract_signature_function
raise ExtractorError('Cannot identify player %r' % player_url)
youtube_dl.utils.ExtractorError: Cannot identify player 'https://www.youtube.com/yts/jsbin/player-vflppxuSE/en_US/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
(caused by ExtractorError("Cannot identify player 'https://www.youtube.com/yts/jsbin/player-vflppxuSE/en_US/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.",)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

@Mochlate

This comment has been minimized.

Copy link

@Mochlate Mochlate commented Apr 28, 2017

It is apparent that youtube must have done some update that has messed with the format. Give the devs a few hours to fix it.

@eminem136915514

This comment has been minimized.

Copy link

@eminem136915514 eminem136915514 commented Apr 28, 2017

i met this problems ,and updated the new released version(4.26),it still doesn't work

@Mochlate

This comment has been minimized.

Copy link

@Mochlate Mochlate commented Apr 28, 2017

@eminem136915514 this problem did not exists until today, 4/27 how would it be fixed in the 4/26 build?

@amoschu

This comment has been minimized.

Copy link
Author

@amoschu amoschu commented Apr 28, 2017

This may fix it? (I added 'lang_REGION' to the player url regex)

$ diff /usr/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py ~/youtube.py
966c966
<             r'.*?-(?P<id>[a-zA-Z0-9_-]+)(?:/watch_as3|/html5player(?:-new)?|/base)?\.(?P<ext>[a-z]+)$',
---
>             r'.*?-(?P<id>[a-zA-Z0-9_-]+)(?:/[a-z]{2}_[A-Z]{2})?(?:/watch_as3|/html5player(?:-new)?|/base)?\.(?P<ext>[a-z]+)$',
@protella

This comment has been minimized.

Copy link

@protella protella commented Apr 28, 2017

That seems to have fixed it for me, amoschu. Thx

@Wasdsensei

This comment has been minimized.

Copy link

@Wasdsensei Wasdsensei commented Apr 28, 2017

Any ideas on how one would achieve this in the Windows version? (Or maybe I should just be patient and wait for an update.)

@jianwen03

This comment has been minimized.

Copy link

@jianwen03 jianwen03 commented Apr 28, 2017

Er sorry noob here how to I use the fix? I'm using ubuntu 16.04
$ diff /usr/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py ~/youtube.py diff: /usr/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py: No such file or directory diff: /home/jw/youtube.py: No such file or directory

@protella

This comment has been minimized.

Copy link

@protella protella commented Apr 28, 2017

@jianwen03
Edit: /usr/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py
Find the first line in the fix above (line 966)
Replace with the second line. (beginning with the "r")

@randomentity93

This comment has been minimized.

Copy link

@randomentity93 randomentity93 commented Apr 28, 2017

This fix worked, Thanks @amoschu

@jianwen03

This comment has been minimized.

Copy link

@jianwen03 jianwen03 commented Apr 28, 2017

I don't have anything named 'site-packages' in /usr/lib/python2.7... help pls?

@rodzky

This comment has been minimized.

Copy link

@rodzky rodzky commented Apr 28, 2017

I am using the latest Windows exe version and the problem still persist. Please help me.

@k-e-keith

This comment has been minimized.

Copy link

@k-e-keith k-e-keith commented Apr 28, 2017

Currently on Windows 10, running the latest version of youtube-dl; have been encountering this issue throughout the day as well.
Updated the deps.bat and youtube-dl and haven't had any luck.
Error enclosed below in case it's helpful.

Could not extract information from https://www.youtube.com/watch?v=-hHpSlEz73k&index=36&list=PL21BAA7C6EDEB63A3

ERROR: Signature extraction failed: Traceback (most recent call last):
  File "C:\Users\Francois\AppData\Local\Programs\Python\Python35\lib\site-packages\youtube_dl\extractor\youtube.py", line 1081, in _decrypt_signature
    video_id, player_url, s
  File "C:\Users\Francois\AppData\Local\Programs\Python\Python35\lib\site-packages\youtube_dl\extractor\youtube.py", line 969, in _extract_signature_function
    raise ExtractorError('Cannot identify player %r' % player_url)
youtube_dl.utils.ExtractorError: Cannot identify player 'https://www.youtube.com/yts/jsbin/player-vflppxuSE/en_US/base.js'
 (caused by ExtractorError("Cannot identify player 'https://www.youtube.com/yts/jsbin/player-vflppxuSE/en_US/base.js'",))
@rodzky

This comment has been minimized.

Copy link

@rodzky rodzky commented Apr 28, 2017

I have the same issue for the past 5hours already, I'm using windows exe version 04.26.2017
Please help :(

C:\Users\Administrator>youtube-dl -v --extract-audio --audio-format mp3 -o C:/yo
utube-downloads/%(id)s.%(ext)s http://www.youtube.com/watch?v=RgKAFK5djSk
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '--extract-audio', '--audio-format', 'mp3', '-
o', 'C:/youtube-downloads/%(id)s.%(ext)s', 'http://www.youtube.com/watch?v=RgKAF
K5djSk']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2017.04.26
[debug] Python version 3.4.4 - Windows-2012ServerR2-6.3.9600
[debug] exe versions: ffmpeg N-85588-g6108805, ffprobe N-85588-g6108805
[debug] Proxy map: {}
[youtube] RgKAFK5djSk: Downloading webpage
[youtube] RgKAFK5djSk: Downloading video info webpage
[youtube] RgKAFK5djSk: Extracting video information
WARNING: unable to extract html5 player; please report this issue on https://yt-
dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to
update. Be sure to call youtube-dl with the --verbose flag and include its comp
lete output.
[youtube] {22} signature length 40.40, html5 player None
ERROR: Signature extraction failed: Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpi8nwgst1\bu
ild\youtube_dl\extractor\youtube.py", line 1081, in _decrypt_signature
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpi8nwgst1\bu
ild\youtube_dl\extractor\youtube.py", line 969, in _extract_signature_function
youtube_dl.utils.ExtractorError: Cannot identify player 'https://www.youtube.com
/yts/jsbin/player-vflppxuSE/en_US/base.js'; please report this issue on https://
yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U
to update. Be sure to call youtube-dl with the --verbose flag and include its c
omplete output.
(caused by ExtractorError("Cannot identify player 'https://www.youtube.com/yts/
jsbin/player-vflppxuSE/en_US/base.js'; please report this issue on https://yt-dl
.org/bug . Make sure you are using the latest version; type youtube-dl -U to u
pdate. Be sure to call youtube-dl with the --verbose flag and include its comple
te output.",)); please report this issue on https://yt-dl.org/bug . Make sure yo
u are using the latest version; type youtube-dl -U to update. Be sure to call
youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpi8nwgst1\bu
ild\youtube_dl\extractor\youtube.py", line 1081, in _decrypt_signature
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpi8nwgst1\bu
ild\youtube_dl\extractor\youtube.py", line 969, in _extract_signature_function
youtube_dl.utils.ExtractorError: Cannot identify player 'https://www.youtube.com
/yts/jsbin/player-vflppxuSE/en_US/base.js'; please report this issue on https://
yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U
to update. Be sure to call youtube-dl with the --verbose flag and include its c
omplete output.
Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpi8nwgst1\bu
ild\youtube_dl\extractor\youtube.py", line 1081, in _decrypt_signature
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpi8nwgst1\bu
ild\youtube_dl\extractor\youtube.py", line 969, in _extract_signature_function
youtube_dl.utils.ExtractorError: Cannot identify player 'https://www.youtube.com
/yts/jsbin/player-vflppxuSE/en_US/base.js'; please report this issue on https://
yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U
to update. Be sure to call youtube-dl with the --verbose flag and include its c
omplete output.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpi8nwgst1\bu
ild\youtube_dl\YoutubeDL.py", line 760, in extract_info
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpi8nwgst1\bu
ild\youtube_dl\extractor\common.py", line 429, in extract
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpi8nwgst1\bu
ild\youtube_dl\extractor\youtube.py", line 1642, in _real_extract
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpi8nwgst1\bu
ild\youtube_dl\extractor\youtube.py", line 1091, in _decrypt_signature
youtube_dl.utils.ExtractorError: Signature extraction failed: Traceback (most re
cent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpi8nwgst1\bu
ild\youtube_dl\extractor\youtube.py", line 1081, in _decrypt_signature
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpi8nwgst1\bu
ild\youtube_dl\extractor\youtube.py", line 969, in _extract_signature_function
youtube_dl.utils.ExtractorError: Cannot identify player 'https://www.youtube.com
/yts/jsbin/player-vflppxuSE/en_US/base.js'; please report this issue on https://
yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U
to update. Be sure to call youtube-dl with the --verbose flag and include its c
omplete output.
(caused by ExtractorError("Cannot identify player 'https://www.youtube.com/yts/
jsbin/player-vflppxuSE/en_US/base.js'; please report this issue on https://yt-dl
.org/bug . Make sure you are using the latest version; type youtube-dl -U to u
pdate. Be sure to call youtube-dl with the --verbose flag and include its comple
te output.",)); please report this issue on https://yt-dl.org/bug . Make sure yo
u are using the latest version; type youtube-dl -U to update. Be sure to call
youtube-dl with the --verbose flag and include its complete output.

@irrgit

This comment has been minimized.

Copy link

@irrgit irrgit commented Apr 28, 2017

@amoschu Thanks dude, easy fast fix.

@vedavrat

This comment has been minimized.

Copy link

@vedavrat vedavrat commented Apr 28, 2017

"""

I don't have anything named 'site-packages' in /usr/lib/python2.7... help pls?

I have it here:
/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py

Or try to find it:
locate youtube.py

@vedavrat

This comment has been minimized.

Copy link

@vedavrat vedavrat commented Apr 28, 2017

(#12885 (comment))

@amoschu
Thank you!
Your fix for 'youtube_dl/extractor/youtube.py' file helped !

@skeith

This comment has been minimized.

Copy link

@skeith skeith commented Apr 28, 2017

strange, that fix does not work on me

@Midaychi

This comment has been minimized.

Copy link

@Midaychi Midaychi commented Apr 28, 2017

Can confirm that the fix put forward by amoschu works on windows 10
you go to \AppData\Local\Programs\Python\Python35-32\Lib\site-packages\youtube_dl\extractor
edit youtube.py
line 966
replace the line specified by @amoschu

@k-e-keith

This comment has been minimized.

Copy link

@k-e-keith k-e-keith commented Apr 28, 2017

Any way for someone to more clearly explain the process for @amoschu 's fix re: Windows 10?
Total noob here unsure on how to apply it.

Edit: Thanks so much! @amoschu 's fix with @Midaychi 's instructions seems to have done the trick.

@rodzky

This comment has been minimized.

Copy link

@rodzky rodzky commented Apr 28, 2017

Seems like the issue only appears when downloading VEVO videos.
I tried some local videos and the error is not showing.

@yan12125 yan12125 closed this in e31fed9 Apr 28, 2017
@yan12125

This comment has been minimized.

Copy link
Collaborator

@yan12125 yan12125 commented Apr 28, 2017

I've uploaded a fix based on @amoschu's change. Feel free to leave comments if the problem is still.

@swaraasolutions

This comment has been minimized.

Copy link

@swaraasolutions swaraasolutions commented Apr 28, 2017

I have applied the regex from the commit 27 minutes ago and after adding that i am still getting error with videos
[debug] System config: [u'--prefer-free-formats'] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: [u'-g', u'https://www.youtube.com/watch?v=uvxPMp-ZoEA', u'--verbose'] [debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2017.04.26 [debug] Python version 2.7.5 - Linux-3.10.0-514.6.1.el7.x86_64-x86_64-with-centos-7.3.1611-Core [debug] exe versions: ffmpeg 2.8.8, ffprobe 2.8.8 [debug] Proxy map: {} WARNING: unable to extract html5 player; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version ; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output. ERROR: Signature extraction failed: Traceback (most recent call last): File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1081, in _decrypt_signature video_id, player_url, s File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 969, in _extract_signature_function raise ExtractorError('Cannot identify player %r' % player_url) ExtractorError: Cannot identify player u'https://www.youtube.com/yts/jsbin/player-vflppxuSE/en_US/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with th e --verbose flag and include its complete output. (caused by ExtractorError(u"Cannot identify player u'https://www.youtube.com/yts/jsbin/player-vflppxuSE/en_US/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtu be-dl with the --verbose flag and include its complete output.",)); please report this issue on https://yt-dl.org/bug . Make sure you a re using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complet e output. Traceback (most recent call last): File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1081, in _decrypt_signature video_id, player_url, s File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 969, in _extract_signature_function raise ExtractorError('Cannot identify player %r' % player_url) ExtractorError: Cannot identify player u'https://www.youtube.com/yts/jsbin/player-vflppxuSE/en_US/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with th e --verbose flag and include its complete output. Traceback (most recent call last): File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 760, in extract_info ie_result = ie.extract(url) File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 429, in extract ie_result = self._real_extract(url) File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1642, in _real_extract encrypted_sig, video_id, player_url, age_gate) File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1091, in _decrypt_signature 'Signature extraction failed: ' + tb, cause=e) ExtractorError: Signature extraction failed: Traceback (most recent call last): File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1081, in _decrypt_signature video_id, player_url, s File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 969, in _extract_signature_function raise ExtractorError('Cannot identify player %r' % player_url) ExtractorError: Cannot identify player u'https://www.youtube.com/yts/jsbin/player-vflppxuSE/en_US/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with th e --verbose flag and include its complete output. (caused by ExtractorError(u"Cannot identify player u'https://www.youtube.com/yts/jsbin/player-vflppxuSE/en_US/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtu be-dl with the --verbose flag and include its complete output.",)); please report this issue on https://yt-dl.org/bug . Make sure you a re using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complet e output.
This happens to videos in India if that helps

yan12125 added a commit that referenced this issue Apr 28, 2017
@inhahe

This comment has been minimized.

Copy link

@inhahe inhahe commented Apr 28, 2017

I'm getting the error with every video I try now (I'm listening to random Frosty the Snowman covers). I see some people saying it's only VEVO videos, and I'm not sure what a VEVO video is (a video uploaded by the user VEVO?), but I don't think these are VEVO videos because I don't see VEVO anywhere on the page.

Here's the latest one that I got the error with: https://www.youtube.com/watch?v=MrJWl6QSzNk

@mattjis

This comment has been minimized.

Copy link

@mattjis mattjis commented Apr 28, 2017

@inhahe yeah it's all videos for me too

@yan12125 how can I get youtube-dl to update to the version you just added a commit to?

@yan12125

This comment has been minimized.

Copy link
Collaborator

@yan12125 yan12125 commented Apr 28, 2017

how can I get youtube-dl to update to the version you just added a commit to?

A possible way is:

  1. Download https://github.com/rg3/youtube-dl/archive/master.zip and extract it
  2. Open CMD.exe/shell and cd to youtube-dl-master
  3. Install Python from https://www.python.org/ or package managers (apt-get, yum, Homebrew, etc.)
  4. Run python ./youtube_dl/__main__.py (the URL)
@erdoukki

This comment has been minimized.

Copy link

@erdoukki erdoukki commented Apr 28, 2017

commit e31fed9
applyed locally this fix resolved the issue.

Thanks.

@navidR

This comment has been minimized.

Copy link

@navidR navidR commented Apr 28, 2017

How much it would take to become available from pip3 ?

@yan12125

This comment has been minimized.

Copy link
Collaborator

@yan12125 yan12125 commented Apr 28, 2017

How much it would take to become available from pip3 ?

If you have git, you can use pip install --upgrade git+https://github.com/rg3/youtube-dl to fetch the latest commit. Otherwise you'll need to wait until the release manager @dstftw has spare time.

@irukukagika

This comment has been minimized.

Copy link

@irukukagika irukukagika commented Apr 28, 2017

The fix worked. For those who have nothing under /usr/lib/python2.7/site-packages/ check in
/usr/lib/python2.7/dist-packages/ - Python 2.7
/usr/lib/python3.5/site-packages/ - Python 3.5

@inhahe

This comment has been minimized.

Copy link

@inhahe inhahe commented Apr 28, 2017

@irukukagika Mine was in /usr/local/lib/python2.7/site-packages. Forgive my linux n00bness if this is somehow a dumb comment. =)

@SuchKnife

This comment has been minimized.

Copy link

@SuchKnife SuchKnife commented Apr 28, 2017

I still dont get it what to do, can someone please give me the full steps what to do? I've tried to go into YouTube.py , then edit with nodepat++, went to line 966, replaced every player url or something for lang_REGION , then I tried the bot, but still nothing works.

@arno01

This comment has been minimized.

Copy link

@arno01 arno01 commented Apr 28, 2017

@SuchKnife just use the latest youtube-dl from the git master branch:

virtualenv ~/.venv/youtube-dl
. ~/.venv/youtube-dl/bin/activate
pip install --upgrade https://github.com/rg3/youtube-dl/archive/master.zip
alias youtube-dl=$(type -p youtube-dl) | tee -a ~/.bash_aliases
deactivate

There you go! :-)

@SuchKnife

This comment has been minimized.

Copy link

@SuchKnife SuchKnife commented Apr 28, 2017

@arno01 Sorry i'm not really that kind of person to know these type of stuff, like what u said. I still have no idea what to do. Sorry! =(

@DukeMcAwesome

This comment has been minimized.

Copy link

@DukeMcAwesome DukeMcAwesome commented Apr 28, 2017

@SuchKnife - in the Youtube.py which you accessed, you need to replace the regex on line 966 with
r'.*?-(?P<id>[a-zA-Z0-9_-]+)(?:/[a-z]{2}_[A-Z]{2})?(?:/watch_as3|/html5player(?:-new)?|/base)?\.(?P<ext>[a-z]+)$'

You don't need to change anything else.

@yan12125 yan12125 mentioned this issue Apr 28, 2017
2 of 6 tasks complete
@SuchKnife

This comment has been minimized.

Copy link

@SuchKnife SuchKnife commented Apr 28, 2017

@DukeMcAwesome Thank you, It's fixed. Thanks everyone who helped <3

@war1an

This comment has been minimized.

Copy link

@war1an war1an commented Apr 28, 2017

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'-f', u'bestaudio', u'dSYu8FLVr_Y', u'--exec', u'/usr/local/bin/ffmpeg -i {} -codec:a libmp3lame -qscale:a 0 /Users/ivan/Documents/dSYu8FLVr_Y.mp3 && rm {}']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.04.26
[debug] Python version 2.7.10 - Darwin-16.5.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.2.4, ffprobe 3.2.4
[debug] Proxy map: {}
[youtube] dSYu8FLVr_Y: Downloading webpage
[youtube] dSYu8FLVr_Y: Downloading video info webpage
[youtube] dSYu8FLVr_Y: Extracting video information
WARNING: unable to extract html5 player; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
[youtube] {22} signature length 40.40, html5 player None
ERROR: Signature extraction failed: Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1081, in _decrypt_signature
video_id, player_url, s
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 969, in _extract_signature_function
raise ExtractorError('Cannot identify player %r' % player_url)
ExtractorError: Cannot identify player u'https://www.youtube.com/yts/jsbin/player-vflppxuSE/en_US/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
(caused by ExtractorError(u"Cannot identify player u'https://www.youtube.com/yts/jsbin/player-vflppxuSE/en_US/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.",)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1081, in _decrypt_signature
video_id, player_url, s
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 969, in _extract_signature_function
raise ExtractorError('Cannot identify player %r' % player_url)
ExtractorError: Cannot identify player u'https://www.youtube.com/yts/jsbin/player-vflppxuSE/en_US/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 760, in extract_info
ie_result = ie.extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 429, in extract
ie_result = self._real_extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1642, in _real_extract
encrypted_sig, video_id, player_url, age_gate)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1091, in _decrypt_signature
'Signature extraction failed: ' + tb, cause=e)
ExtractorError: Signature extraction failed: Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1081, in _decrypt_signature
video_id, player_url, s
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 969, in _extract_signature_function
raise ExtractorError('Cannot identify player %r' % player_url)
ExtractorError: Cannot identify player u'https://www.youtube.com/yts/jsbin/player-vflppxuSE/en_US/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
(caused by ExtractorError(u"Cannot identify player u'https://www.youtube.com/yts/jsbin/player-vflppxuSE/en_US/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.",)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

@thereald3bug

This comment has been minimized.

Copy link

@thereald3bug thereald3bug commented Apr 28, 2017

Problem still occurs as of right now under Windows 10.
Updated to latest EXE. It is 7am EST.
URL for my video is: https://www.youtube.com/watch?v=QWLBtMz5OuY

Output is as follows:
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', '-f', '137+bestaudio', 'https://www.youtube.com/watch?v=QWLBtMz5OuY']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2017.04.26
[debug] Python version 3.4.4 - Windows-10-10.0.15063
[debug] exe versions: ffmpeg N-85469-gf1d80bc
[debug] Proxy map: {}
[youtube] QWLBtMz5OuY: Downloading webpage
[youtube] QWLBtMz5OuY: Downloading video info webpage
[youtube] QWLBtMz5OuY: Extracting video information
WARNING: unable to extract html5 player; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
[youtube] {22} signature length 40.40, html5 player None
ERROR: Signature extraction failed: Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpi8nwgst1\build\youtube_dl\extractor\youtube.py", line 1081, in _decrypt_signature
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpi8nwgst1\build\youtube_dl\extractor\youtube.py", line 969, in _extract_signature_function
youtube_dl.utils.ExtractorError: Cannot identify player 'https://www.youtube.com/yts/jsbin/player-vflppxuSE/en_US/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
(caused by ExtractorError("Cannot identify player 'https://www.youtube.com/yts/jsbin/player-vflppxuSE/en_US/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.",)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpi8nwgst1\build\youtube_dl\extractor\youtube.py", line 1081, in _decrypt_signature
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpi8nwgst1\build\youtube_dl\extractor\youtube.py", line 969, in _extract_signature_function
youtube_dl.utils.ExtractorError: Cannot identify player 'https://www.youtube.com/yts/jsbin/player-vflppxuSE/en_US/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpi8nwgst1\build\youtube_dl\extractor\youtube.py", line 1081, in _decrypt_signature
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpi8nwgst1\build\youtube_dl\extractor\youtube.py", line 969, in _extract_signature_function
youtube_dl.utils.ExtractorError: Cannot identify player 'https://www.youtube.com/yts/jsbin/player-vflppxuSE/en_US/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpi8nwgst1\build\youtube_dl\YoutubeDL.py", line 760, in extract_info
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpi8nwgst1\build\youtube_dl\extractor\common.py", line 429, in extract
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpi8nwgst1\build\youtube_dl\extractor\youtube.py", line 1642, in _real_extract
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpi8nwgst1\build\youtube_dl\extractor\youtube.py", line 1091, in _decrypt_signature
youtube_dl.utils.ExtractorError: Signature extraction failed: Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpi8nwgst1\build\youtube_dl\extractor\youtube.py", line 1081, in _decrypt_signature
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpi8nwgst1\build\youtube_dl\extractor\youtube.py", line 969, in _extract_signature_function
youtube_dl.utils.ExtractorError: Cannot identify player 'https://www.youtube.com/yts/jsbin/player-vflppxuSE/en_US/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
(caused by ExtractorError("Cannot identify player 'https://www.youtube.com/yts/jsbin/player-vflppxuSE/en_US/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.",)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

@ytdl-org ytdl-org locked and limited conversation to collaborators Apr 28, 2017
@dstftw dstftw closed this Apr 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
You can’t perform that action at this time.