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

Receiving ExtractorError when using youtube-dl in python discord bot #26137

Closed
benwornes opened this issue Jul 27, 2020 · 0 comments
Closed

Receiving ExtractorError when using youtube-dl in python discord bot #26137

benwornes opened this issue Jul 27, 2020 · 0 comments

Comments

@benwornes
Copy link

@benwornes benwornes commented Jul 27, 2020

Checklist

  • I'm reporting a broken site support issue
  • I've verified that I'm running youtube-dl version 2020.06.16.1
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar bug reports including closed ones
  • I've read bugs section in FAQ

Verbose log

C:\Users\ben>youtube-dl https://www.youtube.com/watch?v=dQw4w9WgXcQ --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.youtube.com/watch?v=dQw4w9WgXcQ', '--verbose']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2020.06.16.1
[debug] Python version 3.8.3 (CPython) - Windows-10-10.0.18362-SP0
[debug] exe versions: ffmpeg git-2020-06-28-4cfcfb3, ffprobe git-2020-06-28-4cfcfb3
[debug] Proxy map: {}
[youtube] dQw4w9WgXcQ: Downloading webpage
[youtube] {18} signature length 104, html5 player f82a8c37
[youtube] dQw4w9WgXcQ: Downloading player https://www.youtube.com/s/player/f82a8c37/player_ias.vflset/en_US/base.js
ERROR: Signature extraction failed: Traceback (most recent call last):
  File "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\extractor\youtube.py", line 1425, in _decrypt_signature
    func = self._extract_signature_function(
  File "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\extractor\youtube.py", line 1338, in _extract_signature_function
    cache_res = res(test_string)
  File "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\extractor\youtube.py", line 1402, in <lambda>
    return lambda s: initial_function([s])
  File "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\jsinterp.py", line 258, in resf
    res, abort = self.interpret_statement(stmt, local_vars)
  File "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\jsinterp.py", line 56, in interpret_statement
    v = self.interpret_expression(expr, local_vars, allow_recursion)
  File "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\jsinterp.py", line 91, in interpret_expression
    right_val = self.interpret_expression(
  File "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\jsinterp.py", line 188, in interpret_expression
    x, abort = self.interpret_statement(
  File "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\jsinterp.py", line 56, in interpret_statement
    v = self.interpret_expression(expr, local_vars, allow_recursion)
  File "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\jsinterp.py", line 211, in interpret_expression
    raise ExtractorError('Unsupported JS expression %r' % expr)
youtube_dl.utils.ExtractorError: Unsupported JS expression '['; 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("Unsupported JS expression '['; 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 "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\extractor\youtube.py", line 1425, in _decrypt_signature
    func = self._extract_signature_function(
  File "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\extractor\youtube.py", line 1338, in _extract_signature_function
    cache_res = res(test_string)
  File "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\extractor\youtube.py", line 1402, in <lambda>
    return lambda s: initial_function([s])
  File "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\jsinterp.py", line 258, in resf
    res, abort = self.interpret_statement(stmt, local_vars)
  File "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\jsinterp.py", line 56, in interpret_statement
    v = self.interpret_expression(expr, local_vars, allow_recursion)
  File "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\jsinterp.py", line 91, in interpret_expression
    right_val = self.interpret_expression(
  File "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\jsinterp.py", line 188, in interpret_expression
    x, abort = self.interpret_statement(
  File "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\jsinterp.py", line 56, in interpret_statement
    v = self.interpret_expression(expr, local_vars, allow_recursion)
  File "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\jsinterp.py", line 211, in interpret_expression
    raise ExtractorError('Unsupported JS expression %r' % expr)
youtube_dl.utils.ExtractorError: Unsupported JS expression '['; 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 "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\extractor\youtube.py", line 1425, in _decrypt_signature
    func = self._extract_signature_function(
  File "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\extractor\youtube.py", line 1338, in _extract_signature_function
    cache_res = res(test_string)
  File "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\extractor\youtube.py", line 1402, in <lambda>
    return lambda s: initial_function([s])
  File "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\jsinterp.py", line 258, in resf
    res, abort = self.interpret_statement(stmt, local_vars)
  File "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\jsinterp.py", line 56, in interpret_statement
    v = self.interpret_expression(expr, local_vars, allow_recursion)
  File "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\jsinterp.py", line 91, in interpret_expression
    right_val = self.interpret_expression(
  File "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\jsinterp.py", line 188, in interpret_expression
    x, abort = self.interpret_statement(
  File "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\jsinterp.py", line 56, in interpret_statement
    v = self.interpret_expression(expr, local_vars, allow_recursion)
  File "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\jsinterp.py", line 211, in interpret_expression
    raise ExtractorError('Unsupported JS expression %r' % expr)
youtube_dl.utils.ExtractorError: Unsupported JS expression '['; 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 "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\YoutubeDL.py", line 797, in extract_info
    ie_result = ie.extract(url)
  File "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\extractor\common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\extractor\youtube.py", line 2106, in _real_extract
    signature = self._decrypt_signature(
  File "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\extractor\youtube.py", line 1435, in _decrypt_signature
    raise ExtractorError(
youtube_dl.utils.ExtractorError: Signature extraction failed: Traceback (most recent call last):
  File "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\extractor\youtube.py", line 1425, in _decrypt_signature
    func = self._extract_signature_function(
  File "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\extractor\youtube.py", line 1338, in _extract_signature_function
    cache_res = res(test_string)
  File "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\extractor\youtube.py", line 1402, in <lambda>
    return lambda s: initial_function([s])
  File "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\jsinterp.py", line 258, in resf
    res, abort = self.interpret_statement(stmt, local_vars)
  File "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\jsinterp.py", line 56, in interpret_statement
    v = self.interpret_expression(expr, local_vars, allow_recursion)
  File "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\jsinterp.py", line 91, in interpret_expression
    right_val = self.interpret_expression(
  File "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\jsinterp.py", line 188, in interpret_expression
    x, abort = self.interpret_statement(
  File "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\jsinterp.py", line 56, in interpret_statement
    v = self.interpret_expression(expr, local_vars, allow_recursion)
  File "c:\users\ben\appdata\local\programs\python\python38-32\lib\site-packages\youtube_dl\jsinterp.py", line 211, in interpret_expression
    raise ExtractorError('Unsupported JS expression %r' % expr)
youtube_dl.utils.ExtractorError: Unsupported JS expression '['; 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("Unsupported JS expression '['; 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.

Description

I came back to my python discord bot earlier today, but youtube-dl seems to have broken.

My youtube-dl is fully updated to the newest version yet I am receiving errors when trying to download videos.

I honestly have no clue why this is happening, this is the exact same version I was using a couple of weeks ago and it worked, yet now it does not.

At first I thought it was an issue with the youtube-dl python interface, but I tried it in the regular command prompt and the exact same error still occurs.

(Please note, whilst the youtube URL given in my verbose log is indeed the "Rick Roll" link, this is only because I was testing this particular link in my discord server. This error still occurs no matter what link I type into console)

I would appreciate help.

Thanks, Ben

@benwornes benwornes changed the title Receiving ExtractorError when using Receiving ExtractorError when using youtube-dl in python discord bot Jul 27, 2020
@dstftw dstftw closed this in e450f6c Jul 27, 2020
@ytdl-org ytdl-org locked and limited conversation to collaborators Jul 27, 2020
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
1 participant
You can’t perform that action at this time.