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

ExtractorError: Unsupported JS expression #23829

Closed
theraw opened this issue Jan 24, 2020 · 5 comments
Closed

ExtractorError: Unsupported JS expression #23829

theraw opened this issue Jan 24, 2020 · 5 comments

Comments

@theraw
Copy link

@theraw theraw commented Jan 24, 2020

root@dope:/home/radio/music# ./down https://www.youtube.com/watch?v=IKFuaExJ-EI
WARNING: Assuming --restrict-filenames since file system encoding cannot encode all characters. Set the LC_ALL environment variable to fix this.
[youtube] IKFuaExJ-EI: Downloading webpage
[youtube] IKFuaExJ-EI: Downloading video info webpage
[youtube] IKFuaExJ-EI: Downloading js player vfl7lL1_p
ERROR: Signature extraction failed: Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1384, in _decrypt_signature
    video_id, player_url, s
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1297, in _extract_signature_function
    cache_res = res(test_string)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1360, in <lambda>
    return lambda s: initial_function([s])
  File "/usr/local/bin/youtube-dl/youtube_dl/jsinterp.py", line 258, in resf
    res, abort = self.interpret_statement(stmt, local_vars)
  File "/usr/local/bin/youtube-dl/youtube_dl/jsinterp.py", line 56, in interpret_statement
    v = self.interpret_expression(expr, local_vars, allow_recursion)
  File "/usr/local/bin/youtube-dl/youtube_dl/jsinterp.py", line 92, in interpret_expression
    m.group('expr'), local_vars, allow_recursion - 1)
  File "/usr/local/bin/youtube-dl/youtube_dl/jsinterp.py", line 189, in interpret_expression
    m.group('x'), local_vars, allow_recursion - 1)
  File "/usr/local/bin/youtube-dl/youtube_dl/jsinterp.py", line 56, in interpret_statement
    v = self.interpret_expression(expr, local_vars, allow_recursion)
  File "/usr/local/bin/youtube-dl/youtube_dl/jsinterp.py", line 189, in interpret_expression
    m.group('x'), local_vars, allow_recursion - 1)
  File "/usr/local/bin/youtube-dl/youtube_dl/jsinterp.py", line 56, in interpret_statement
    v = self.interpret_expression(expr, local_vars, allow_recursion)
  File "/usr/local/bin/youtube-dl/youtube_dl/jsinterp.py", line 211, in interpret_expression
    raise ExtractorError('Unsupported JS expression %r' % expr)
ExtractorError: Unsupported JS expression u'[function(c,d){d=(d'; 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"Unsupported JS expression u'[function(c,d){d=(d'; 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.
@theraw
Copy link
Author

@theraw theraw commented Jan 24, 2020

root@dope:/home/radio/music# youtube-dl --version
2020.01.15
@h1z1
Copy link

@h1z1 h1z1 commented Jan 24, 2020

Though they keep closing and locking these tickets rather then keeping one open with an actual update - The problem doesn't affect all videos. I've even hit the same caches where one works but the other doesn't.

This for example works.

It is interesting the number of projects (and products), that are/were using ytdl and are now also down. That I have little sympathy for. Youtube has an API.

@theraw
Copy link
Author

@theraw theraw commented Jan 24, 2020

actually after updating it worked with no problems i had like 10 links not being able to dl after update was able to download them all

@NucleaPeon
Copy link

@NucleaPeon NucleaPeon commented Jan 25, 2020

FYI (this issue helped me track down the issue), Gentoo's youtube-dl version is 2020.01.15, which IS out of date even though I sync'd and emerge'd the latest.

@theraw your link worked, but this one did not: https://www.youtube.com/watch?v=wC4TASbzXrU

@h1z1
Copy link

@h1z1 h1z1 commented Jan 25, 2020

Link worked for me.

Turmion Kätilöt - Faster Than God-wC4TASbzXrU.webm

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