Skip to content

Could not find JS function on MacOSX Big Sur #319

Description

@inquisitivefrog

Checklist

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

Verbose log

frog@My-MacBook-Pro wild_kratts % ../youtube-dlc -v 'https://www.youtube.com/watch?v=iyAefH3Bw1c'
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://www.youtube.com/watch?v=iyAefH3Bw1c']
[debug] Loading archive file None
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dlc version 2020.11.11-3
[debug] Python version 2.7.16 (CPython) - Darwin-20.6.0-x86_64-i386-64bit
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] iyAefH3Bw1c: Downloading webpage
[youtube] {18} signature length 104, html5 player f3c4e04d
[youtube] iyAefH3Bw1c: Downloading player https://www.youtube.com/s/player/f3c4e04d/player_ias.vflset/en_US/base.js
ERROR: Signature extraction failed: Traceback (most recent call last):
  File "../youtube-dlc/youtube_dlc/extractor/youtube.py", line 1395, in _decrypt_signature
    video_id, player_url, s
  File "../youtube-dlc/youtube_dlc/extractor/youtube.py", line 1295, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "../youtube-dlc/youtube_dlc/extractor/youtube.py", line 1370, in _parse_sig_js
    initial_function = jsi.extract_function(funcname)
  File "../youtube-dlc/youtube_dlc/jsinterp.py", line 245, in extract_function
    raise ExtractorError('Could not find JS function %r' % funcname)
ExtractorError: Could not find JS function u'na'; please report this issue on https://github.com/blackjack4494/yt-dlc . Make sure you are using the latest version; type  youtube-dlc -U  to update. Be sure to call youtube-dlc with the --verbose flag and include its complete output.
 (caused by ExtractorError(u"Could not find JS function u'na'; please report this issue on https://github.com/blackjack4494/yt-dlc . Make sure you are using the latest version; type  youtube-dlc -U  to update. Be sure to call youtube-dlc with the --verbose flag and include its complete output.",)); please report this issue on https://github.com/blackjack4494/yt-dlc . Make sure you are using the latest version; type  youtube-dlc -U  to update. Be sure to call youtube-dlc with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "../youtube-dlc/youtube_dlc/extractor/youtube.py", line 1395, in _decrypt_signature
    video_id, player_url, s
  File "../youtube-dlc/youtube_dlc/extractor/youtube.py", line 1295, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "../youtube-dlc/youtube_dlc/extractor/youtube.py", line 1370, in _parse_sig_js
    initial_function = jsi.extract_function(funcname)
  File "../youtube-dlc/youtube_dlc/jsinterp.py", line 245, in extract_function
    raise ExtractorError('Could not find JS function %r' % funcname)
ExtractorError: Could not find JS function u'na'; please report this issue on https://github.com/blackjack4494/yt-dlc . Make sure you are using the latest version; type  youtube-dlc -U  to update. Be sure to call youtube-dlc with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "../youtube-dlc/youtube_dlc/YoutubeDL.py", line 830, in extract_info
    ie_result = ie.extract(url)
  File "../youtube-dlc/youtube_dlc/extractor/common.py", line 532, in extract
    ie_result = self._real_extract(url)
  File "../youtube-dlc/youtube_dlc/extractor/youtube.py", line 2202, in _real_extract
    encrypted_sig, video_id, player_url, age_gate)
  File "../youtube-dlc/youtube_dlc/extractor/youtube.py", line 1405, in _decrypt_signature
    'Signature extraction failed: ' + tb, cause=e)
ExtractorError: Signature extraction failed: Traceback (most recent call last):
  File "../youtube-dlc/youtube_dlc/extractor/youtube.py", line 1395, in _decrypt_signature
    video_id, player_url, s
  File "../youtube-dlc/youtube_dlc/extractor/youtube.py", line 1295, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "../youtube-dlc/youtube_dlc/extractor/youtube.py", line 1370, in _parse_sig_js
    initial_function = jsi.extract_function(funcname)
  File "../youtube-dlc/youtube_dlc/jsinterp.py", line 245, in extract_function
    raise ExtractorError('Could not find JS function %r' % funcname)
ExtractorError: Could not find JS function u'na'; please report this issue on https://github.com/blackjack4494/yt-dlc . Make sure you are using the latest version; type  youtube-dlc -U  to update. Be sure to call youtube-dlc with the --verbose flag and include its complete output.
 (caused by ExtractorError(u"Could not find JS function u'na'; please report this issue on https://github.com/blackjack4494/yt-dlc . Make sure you are using the latest version; type  youtube-dlc -U  to update. Be sure to call youtube-dlc with the --verbose flag and include its complete output.",)); please report this issue on https://github.com/blackjack4494/yt-dlc . Make sure you are using the latest version; type  youtube-dlc -U  to update. Be sure to call youtube-dlc with the --verbose flag and include its complete output.

frog@My-MacBook-Pro wild_kratts % ../youtube-dlc --version
2020.11.11-3
tim@Tims-MacBook-Pro wild_kratts % sw_vers
ProductName:	macOS
ProductVersion:	11.6
BuildVersion:	20G165

Description

File failed to download due to Could Not find JS function error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions