question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"ERROR: Signature extraction failed"

See original GitHub issue
  • Using latest version as provided on the master branch
  • Searched for similar issues including closed ones

What is the purpose of your issue?

  • Bug
  • Feature Request
  • Question
  • Other

Description

Downloading my playlist from another system worked (different version from github). When downloading from my fresh windows 10, it downloaded only ~80/180. Every failed download gives the same error message. Updating youtube-dl via pip install -U youtube_dl didn’t help (latest was already installed prior). Here are some tracks, which failed to download:

https://open.spotify.com/track/3hn2s09PyNrYSqCnhYjm7L https://open.spotify.com/track/0cPsHxvuICaPKmWRFCRe1i https://open.spotify.com/track/5ERWSokrBWx8sUwHV6QN93 https://open.spotify.com/track/1mPPo1eG1joz3HX0Ecw9LL https://open.spotify.com/track/4DErCvO9irCDFmNZWnNw3E https://open.spotify.com/track/66WcaWVGRFmpx0euxmw9yM https://open.spotify.com/track/6bV83bOk40Vdtdgicmqv3S https://open.spotify.com/track/0ndt8ke0ApnXkNxEhamOnW https://open.spotify.com/track/2WaA5bVXcIqqpz9j0gd7qK https://open.spotify.com/track/0UFtsK5aSrq5zYai4aikAu

Log

F:\Development\spotify-downloader>python spotdl.py --list “(8.txt” --log-level=DEBUG DEBUG: Python version: 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC v.1914 32 bit (Intel)] DEBUG: Platform: Windows-10-10.0.17134-SP0 DEBUG: {‘album’: None, ‘avconv’: False, ‘config’: None, ‘download_only_metadata’: False, ‘dry_run’: False, ‘file_format’: ‘{artist} - {track_name}’, ‘folder’: ‘C:\Users\removedName\Music’, ‘input_ext’: ‘.m4a’, ‘list’: ‘(8.txt’, ‘log_level’: 10, ‘manual’: False, ‘music_videos_only’: False, ‘no_metadata’: False, ‘no_spaces’: False, ‘output_ext’: ‘.mp3’, ‘overwrite’: ‘prompt’, ‘playlist’: None, ‘search_format’: ‘{artist} - {track_name} lyrics’, ‘song’: None, ‘trim_silence’: False, ‘username’: None, ‘version’: False, ‘youtube_api_key’: None} INFO: Preparing to download 98 songs

DEBUG: Fetching metadata for given track URL DEBUG: Fetching lyrics DEBUG: {‘album’: {‘album_type’: ‘album’, ‘artists’: [{‘external_urls’: {‘spotify’: ‘https://open.spotify.com/artist/043Bey7ngSGRFpJftAlKpi’}, ‘href’: ‘https://api.spotify.com/v1/artists/043Bey7ngSGRFpJftAlKpi’, ‘id’: ‘043Bey7ngSGRFpJftAlKpi’, ‘name’: ‘Spag Heddy’, ‘type’: ‘artist’, ‘uri’: ‘spotify🧑‍🎨043Bey7ngSGRFpJftAlKpi’}], ‘external_urls’: {‘spotify’: ‘https://open.spotify.com/album/1FmvCvnTpGAnhEPTVrUUiz’}, ‘href’: ‘https://api.spotify.com/v1/albums/1FmvCvnTpGAnhEPTVrUUiz’, ‘id’: ‘1FmvCvnTpGAnhEPTVrUUiz’, ‘images’: [{‘height’: 640, ‘url’: ‘https://i.scdn.co/image/b5992ca4e972b13fdd4b846b171e4399a8007a8e’, ‘width’: 640}, {‘height’: 300, ‘url’: ‘https://i.scdn.co/image/9a5994ff2d8a1e24e32d88a37163826be72673e5’, ‘width’: 300}, {‘height’: 64, ‘url’: ‘https://i.scdn.co/image/9c7e05c88fa8adbcca28eebd30e731f7f73a5ea2’, ‘width’: 64}], ‘name’: ‘The Classics’, ‘release_date’: ‘2017-05-05’, ‘release_date_precision’: ‘day’, ‘total_tracks’: 20, ‘type’: ‘album’, ‘uri’: ‘spotify:album:1FmvCvnTpGAnhEPTVrUUiz’}, ‘artists’: [{‘external_urls’: {‘spotify’: ‘https://open.spotify.com/artist/043Bey7ngSGRFpJftAlKpi’}, ‘href’: ‘https://api.spotify.com/v1/artists/043Bey7ngSGRFpJftAlKpi’, ‘id’: ‘043Bey7ngSGRFpJftAlKpi’, ‘name’: ‘Spag Heddy’, ‘type’: ‘artist’, ‘uri’: ‘spotify🧑‍🎨043Bey7ngSGRFpJftAlKpi’}], ‘copyright’: ‘2017 Create Classics’, ‘disc_number’: 1, ‘duration’: 233.8, ‘explicit’: False, ‘external_ids’: {‘isrc’: ‘CA5KR1554926’}, ‘external_urls’: {‘spotify’: ‘https://open.spotify.com/track/0fUF5bxAbaEkZeRatGvnG0’}, ‘genre’: ‘Brostep’, ‘href’: ‘https://api.spotify.com/v1/tracks/0fUF5bxAbaEkZeRatGvnG0’, ‘id’: ‘0fUF5bxAbaEkZeRatGvnG0’, ‘is_local’: False, ‘lyrics’: None, ‘name’: ‘Permanent’, ‘popularity’: 47, ‘preview_url’: ‘https://p.scdn.co/mp3-preview/cbfd07113bfdeb71d0484fa80cb176acef754164?cid=4fe3fecfe5334023a1472516cc99d805’, ‘publisher’: ‘Create Classics’, ‘release_date’: ‘2017-05-05’, ‘total_tracks’: 20, ‘track_number’: 1, ‘type’: ‘track’, ‘uri’: ‘spotify:track:0fUF5bxAbaEkZeRatGvnG0’, ‘year’: ‘2017’} DEBUG: Opening URL: https://www.youtube.com/results?sp=EgIQAQ%253D%253D&q=Spag Heddy - Permanent lyrics ERROR: Signature extraction failed: Traceback (most recent call last): File “C:\Users\removedName\AppData\Local\Programs\Python\Python37-32\lib\site-packages\youtube_dl\extractor\youtube.py”, line 1210, in _decrypt_signature video_id, player_url, s File “C:\Users\removedName\AppData\Local\Programs\Python\Python37-32\lib\site-packages\youtube_dl\extractor\youtube.py”, line 1121, in _extract_signature_function res = self._parse_sig_js(code) File “C:\Users\removedName\AppData\Local\Programs\Python\Python37-32\lib\site-packages\youtube_dl\extractor\youtube.py”, line 1182, in _parse_sig_js jscode, ‘Initial JS player signature function name’, group=‘sig’) File “C:\Users\removedName\AppData\Local\Programs\Python\Python37-32\lib\site-packages\youtube_dl\extractor\common.py”, line 972, in _search_regex raise RegexNotFoundError(‘Unable to extract %s’ % _name) youtube_dl.utils.RegexNotFoundError: Unable to extract Initial JS player signature function name; 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 RegexNotFoundError(‘Unable to extract Initial JS player signature function name; 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. WARNING: Failed to download song. Will retry after other songs

DEBUG: Fetching metadata for given track URL DEBUG: Fetching lyrics DEBUG: {‘album’: {‘album_type’: ‘single’, ‘artists’: [{‘external_urls’: {‘spotify’: ‘https://open.spotify.com/artist/0daugAjUgbJSqdlyYNwIbT’}, ‘href’: ‘https://api.spotify.com/v1/artists/0daugAjUgbJSqdlyYNwIbT’, ‘id’: ‘0daugAjUgbJSqdlyYNwIbT’, ‘name’: ‘Vicetone’, ‘type’: ‘artist’, ‘uri’: ‘spotify🧑‍🎨0daugAjUgbJSqdlyYNwIbT’}], ‘external_urls’: {‘spotify’: ‘https://open.spotify.com/album/6Xv7zgkIswLSsnqmYeo8OL’}, ‘href’: ‘https://api.spotify.com/v1/albums/6Xv7zgkIswLSsnqmYeo8OL’, ‘id’: ‘6Xv7zgkIswLSsnqmYeo8OL’, ‘images’: [{‘height’: 640, ‘url’: ‘https://i.scdn.co/image/06439f999bd4fe50eb8a8b79585f518dc16ce041’, ‘width’: 640}, {‘height’: 300, ‘url’: ‘https://i.scdn.co/image/d4af804fa5e0668de91bd0d31b22809b39f2814a’, ‘width’: 300}, {‘height’: 64, ‘url’: ‘https://i.scdn.co/image/1a6d716342c553fe8ccecfe9519a79d1695ddc57’, ‘width’: 64}], ‘name’: ‘Nevada (feat. Cozi Zuehlsdorff)’, ‘release_date’: ‘2016-06-24’, ‘release_date_precision’: ‘day’, ‘total_tracks’: 1, ‘type’: ‘album’, ‘uri’: ‘spotify:album:6Xv7zgkIswLSsnqmYeo8OL’}, ‘artists’: [{‘external_urls’: {‘spotify’: ‘https://open.spotify.com/artist/0daugAjUgbJSqdlyYNwIbT’}, ‘href’: ‘https://api.spotify.com/v1/artists/0daugAjUgbJSqdlyYNwIbT’, ‘id’: ‘0daugAjUgbJSqdlyYNwIbT’, ‘name’: ‘Vicetone’, ‘type’: ‘artist’, ‘uri’: ‘spotify🧑‍🎨0daugAjUgbJSqdlyYNwIbT’}, {‘external_urls’: {‘spotify’: ‘https://open.spotify.com/artist/5wMfct6VVvaVQ8xGCXxIUa’}, ‘href’: ‘https://api.spotify.com/v1/artists/5wMfct6VVvaVQ8xGCXxIUa’, ‘id’: ‘5wMfct6VVvaVQ8xGCXxIUa’, ‘name’: ‘Cozi Zuehlsdorff’, ‘type’: ‘artist’, ‘uri’: ‘spotify🧑‍🎨5wMfct6VVvaVQ8xGCXxIUa’}], ‘copyright’: ‘2016 Monstercat’, ‘disc_number’: 1, ‘duration’: 208.561, ‘explicit’: False, ‘external_ids’: {‘isrc’: ‘CA6D21600175’}, ‘external_urls’: {‘spotify’: ‘https://open.spotify.com/track/5BIjJP1zlOa3iY65RSkXkr’}, ‘genre’: ‘Big Room’, ‘href’: ‘https://api.spotify.com/v1/tracks/5BIjJP1zlOa3iY65RSkXkr’, ‘id’: ‘5BIjJP1zlOa3iY65RSkXkr’, ‘is_local’: False, ‘lyrics’: “I’ve been painting every fence I know\n” ‘Every color bleeds into the same\n’ “'Cause before you go and walk away\n” “Yeah, you better know where you’re going\n” ‘\n’ ‘Hey ya, hey ya\n’ “You’re a wanderer, just like me\n” ‘Hey ya, hey ya\n’ “Yeah, you better know where you’re going\n” ‘\n’ “Yeah, you better know where you’re going\n” ‘\n’ “I’ve been painting every fence I know\n” ‘Every color bleeds into the same\n’ “'Cause before you go and walk away\n” “Yeah, you better know where you’re going\n” ‘\n’ ‘Hey ya, hey ya\n’ “You’re a wanderer, just like me\n” ‘Hey ya, hey ya\n’ “Yeah, you better know where you’re going\n” ‘\n’ “(You’re a wanderer, just like me)\n” “(Yeah, you better know where you’re going)\n” ‘\n’ ‘Hey ya, hey ya\n’ “You’re a wanderer, just like me\n” ‘Hey ya, hey ya\n’ “Yeah, you better know where you’re going\n” ‘\n’ “Yeah, you better know where you’re going\n” ‘\n’ “Yeah, you better know where you’re going\n” ‘\n’ “You’re a wanderer, just like me\n” “Yeah, you better know where you’re going\n” ‘\n’ “(You’re a wanderer, just like me)”, ‘name’: ‘Nevada (feat. Cozi Zuehlsdorff)’, ‘popularity’: 65, ‘preview_url’: ‘https://p.scdn.co/mp3-preview/3fdbd9870e39d5da03933f7e084aca251a8bcbbb?cid=4fe3fecfe5334023a1472516cc99d805’, ‘publisher’: ‘Monstercat’, ‘release_date’: ‘2016-06-24’, ‘total_tracks’: 1, ‘track_number’: 1, ‘type’: ‘track’, ‘uri’: ‘spotify:track:5BIjJP1zlOa3iY65RSkXkr’, ‘year’: ‘2016’} DEBUG: Opening URL: https://www.youtube.com/results?sp=EgIQAQ%253D%253D&q=Vicetone - Nevada (feat. Cozi Zuehlsdorff) lyrics ERROR: Signature extraction failed: Traceback (most recent call last): File “C:\Users\removedName\AppData\Local\Programs\Python\Python37-32\lib\site-packages\youtube_dl\extractor\youtube.py”, line 1210, in _decrypt_signature video_id, player_url, s File “C:\Users\removedName\AppData\Local\Programs\Python\Python37-32\lib\site-packages\youtube_dl\extractor\youtube.py”, line 1121, in _extract_signature_function res = self._parse_sig_js(code) File “C:\Users\removedName\AppData\Local\Programs\Python\Python37-32\lib\site-packages\youtube_dl\extractor\youtube.py”, line 1182, in _parse_sig_js jscode, ‘Initial JS player signature function name’, group=‘sig’) File “C:\Users\removedName\AppData\Local\Programs\Python\Python37-32\lib\site-packages\youtube_dl\extractor\common.py”, line 972, in _search_regex raise RegexNotFoundError(‘Unable to extract %s’ % _name) youtube_dl.utils.RegexNotFoundError: Unable to extract Initial JS player signature function name; 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 RegexNotFoundError(‘Unable to extract Initial JS player signature function name; 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. WARNING: Failed to download song. Will retry after other songs

DEBUG: Fetching metadata for given track URL DEBUG: Fetching lyrics ERROR: Traceback (most recent call last): File “spotdl.py”, line 198, in main download_list(text_file=const.args.list) File “spotdl.py”, line 83, in download_list download_single(raw_song, number=number) File “spotdl.py”, line 119, in download_single meta_tags = spotify_tools.generate_metadata(raw_song) File “F:\Development\spotify-downloader\core\spotify_tools.py”, line 66, in generate_metadata meta_tags[‘name’]) File “C:\Users\removedName\AppData\Local\Programs\Python\Python37-32\lib\site-packages\lyricwikia\lyricwikia.py”, line 30, in get_lyrics return get_all_lyrics(artist, song, linesep, timeout)[0] File “C:\Users\removedName\AppData\Local\Programs\Python\Python37-32\lib\site-packages\lyricwikia\lyricwikia.py”, line 36, in get_all_lyrics response = _requests.get(url, timeout=timeout) File “C:\Users\removedName\AppData\Local\Programs\Python\Python37-32\lib\site-packages\requests\api.py”, line 72, in get return request(‘get’, url, params=params, **kwargs) File “C:\Users\removedName\AppData\Local\Programs\Python\Python37-32\lib\site-packages\requests\api.py”, line 58, in request return session.request(method=method, url=url, **kwargs) File “C:\Users\removedName\AppData\Local\Programs\Python\Python37-32\lib\site-packages\requests\sessions.py”, line 512, in request resp = self.send(prep, **send_kwargs) File “C:\Users\removedName\AppData\Local\Programs\Python\Python37-32\lib\site-packages\requests\sessions.py”, line 644, in send history = [resp for resp in gen] if allow_redirects else [] File “C:\Users\removedName\AppData\Local\Programs\Python\Python37-32\lib\site-packages\requests\sessions.py”, line 644, in <listcomp> history = [resp for resp in gen] if allow_redirects else [] File “C:\Users\removedName\AppData\Local\Programs\Python\Python37-32\lib\site-packages\requests\sessions.py”, line 222, in resolve_redirects **adapter_kwargs File “C:\Users\removedName\AppData\Local\Programs\Python\Python37-32\lib\site-packages\requests\sessions.py”, line 662, in send r.content File “C:\Users\removedName\AppData\Local\Programs\Python\Python37-32\lib\site-packages\requests\models.py”, line 827, in content self._content = b’‘.join(self.iter_content(CONTENT_CHUNK_SIZE)) or b’’ File “C:\Users\removedName\AppData\Local\Programs\Python\Python37-32\lib\site-packages\requests\models.py”, line 749, in generate for chunk in self.raw.stream(chunk_size, decode_content=True): File “C:\Users\removedName\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\response.py”, line 465, in stream data = self.read(amt=amt, decode_content=decode_content) File “C:\Users\removedName\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\response.py”, line 413, in read data = self._fp.read(amt) File “C:\Users\removedName\AppData\Local\Programs\Python\Python37-32\lib\http\client.py”, line 447, in read n = self.readinto(b) File “C:\Users\removedName\AppData\Local\Programs\Python\Python37-32\lib\http\client.py”, line 491, in readinto n = self.fp.readinto(b) File “C:\Users\removedName\AppData\Local\Programs\Python\Python37-32\lib\socket.py”, line 589, in readinto return self._sock.recv_into(b) KeyboardInterrupt

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
ritiekcommented, Sep 7, 2018

Yep, it did! You can update your youtube-dl to latest version with

$ pip3 install youtube-dl -U

Gotta close this.

2reactions
ritiekcommented, Sep 7, 2018

Seems like YouTube changed something (yet again). Let’s hope if those awesome youtube-dl guys can release a fix soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Signature extraction failed #30364 - ytdl-org/youtube-dl - GitHub
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...
Read more >
Signature extraction failed: Traceback (most recent call last)
Hi Guys, I'm on MAC osMojave 10.14.6. I tried to download a youtube video but got this error: ### [youtube] WqzTRK5GPWQ: Downloading ...
Read more >
youtube-dl failed to extract signature - Ask Ubuntu
A message is seen and it stopped working, which is following. ERROR: Signature extraction failed: Traceback (most recent call last): File "/usr/lib/python2.7/ ...
Read more >
1722934 – ERROR: Signature extraction failed
Description of problem: youtube-dl fails to download from some URL's. Version-Release number of selected component (if applicable): ...
Read more >
[SOLVED] youtube-dl errors out downlong an audio file
I have youtube (version youtube-dl 2020.01.15-1 ) fail when trying to ... js player vfl7lL1_p ERROR: Signature extraction failed: Traceback ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found