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

Signature extraction failed #342

Closed
3 of 6 tasks
WiteXDan opened this issue Sep 7, 2018 · 1 comment
Closed
3 of 6 tasks

Signature extraction failed #342

WiteXDan opened this issue Sep 7, 2018 · 1 comment
Labels
Duplicate Duplicate Issue/PR

Comments

@WiteXDan
Copy link

WiteXDan commented Sep 7, 2018

  • 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

Everytime i try to download playlist/song via "python spotdl.py --list ####.txt" i got this errors.

ERROR: Signature extraction failed: Traceback (most recent call last):
File "C:\Users\Wiktor\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\Wiktor\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\Wiktor\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\Wiktor\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

Log

DEBUG: Fetching metadata for given track URL
DEBUG: Fetching lyrics
DEBUG: {'album': {'album_type': 'album',
'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/1DFr97A9HnbV3SKTJFu62M'},
'href': 'https://api.spotify.com/v1/artists/1DFr97A9HnbV3SKTJFu62M',
'id': '1DFr97A9HnbV3SKTJFu62M',
'name': 'Motörhead',
'type': 'artist',
'uri': 'spotify:artist:1DFr97A9HnbV3SKTJFu62M'}],
'external_urls': {'spotify': 'https://open.spotify.com/album/3xqjaGS3zK0WQPLg6Qdb50'},
'href': 'https://api.spotify.com/v1/albums/3xqjaGS3zK0WQPLg6Qdb50',
'id': '3xqjaGS3zK0WQPLg6Qdb50',
'images': [{'height': 640,
'url': 'https://i.scdn.co/image/97b54678c2d9c31022978dc62daad77811a8713a',
'width': 640},
{'height': 300,
'url': 'https://i.scdn.co/image/7252aaaf3c10ed03a54ee39b2095b834c2972748',
'width': 300},
{'height': 64,
'url': 'https://i.scdn.co/image/7a4e3b5b98945a0d64f159420b99add7d7f16df9',
'width': 64}],
'name': 'Overkill (Deluxe Edition)',
'release_date': '1979-03-24',
'release_date_precision': 'day',
'total_tracks': 29,
'type': 'album',
'uri': 'spotify:album:3xqjaGS3zK0WQPLg6Qdb50'},
'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/1DFr97A9HnbV3SKTJFu62M'},
'href': 'https://api.spotify.com/v1/artists/1DFr97A9HnbV3SKTJFu62M',
'id': '1DFr97A9HnbV3SKTJFu62M',
'name': 'Motörhead',
'type': 'artist',
'uri': 'spotify:artist:1DFr97A9HnbV3SKTJFu62M'}],
'copyright': '2008 Sanctuary Records Group Ltd., a BMG Company',
'disc_number': 1,
'duration': 215.84,
'explicit': False,
'external_ids': {'isrc': 'GBAJE0000036'},
'external_urls': {'spotify': 'https://open.spotify.com/track/3Cf7TDV6xRqHzBBbTZ26Qy'},
'genre': 'Album Rock',
'href': 'https://api.spotify.com/v1/tracks/3Cf7TDV6xRqHzBBbTZ26Qy',
'id': '3Cf7TDV6xRqHzBBbTZ26Qy',
'is_local': False,
'lyrics': 'Metropolis, the worlds collide\n'
"Ain't nobody could be on your side\n"
"I don't care, I don't care\n"
'\n'
'Metropolis is something new\n'
"Ain't nobody got their eye on you\n"
"I don't care, it's nowhere\n"
'\n'
'Metropolis, the worlds collide\n'
"Ain't nobody on the other side\n"
"I don't care, I'm not there",
'name': 'Metropolis',
'popularity': 35,
'preview_url': 'https://p.scdn.co/mp3-preview/0d33784b84dac0d93a723207b0f227aef1d582cf?cid=4fe3fecfe5334023a1472516cc99d805',
'publisher': 'Sanctuary Records',
'release_date': '1979-03-24',
'total_tracks': 29,
'track_number': 9,
'type': 'track',
'uri': 'spotify:track:3Cf7TDV6xRqHzBBbTZ26Qy',
'year': '1979'}
DEBUG: Opening URL: https://www.youtube.com/results?sp=EgIQAQ%253D%253D&q=Mot%C3%B6rhead%20-%20Metropolis%20lyrics
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 120, in download_single
content = youtube_tools.go_pafy(raw_song, meta_tags)
File "D:\spotify-downloader-master\core\youtube_tools.py", line 32, in go_pafy
track_url = generate_youtube_url(raw_song, meta_tags)
File "D:\spotify-downloader-master\core\youtube_tools.py", line 103, in generate_youtube_url
url = url_fetch.scrape()
File "D:\spotify-downloader-master\core\youtube_tools.py", line 174, in scrape
items_parse = BeautifulSoup(item, "html.parser")
File "C:\Users\Wiktor\AppData\Local\Programs\Python\Python37-32\lib\site-packages\bs4_init_.py", line 282, in init
self.feed()
File "C:\Users\Wiktor\AppData\Local\Programs\Python\Python37-32\lib\site-packages\bs4_init
.py", line 343, in _feed
self.builder.feed(self.markup)
File "C:\Users\Wiktor\AppData\Local\Programs\Python\Python37-32\lib\site-packages\bs4\builder_htmlparser.py", line 247, in feed
parser.feed(markup)
File "C:\Users\Wiktor\AppData\Local\Programs\Python\Python37-32\lib\html\parser.py", line 111, in feed
self.goahead(0)
File "C:\Users\Wiktor\AppData\Local\Programs\Python\Python37-32\lib\html\parser.py", line 171, in goahead
k = self.parse_starttag(i)
File "C:\Users\Wiktor\AppData\Local\Programs\Python\Python37-32\lib\html\parser.py", line 316, in parse_starttag
m = attrfind_tolerant.match(rawdata, k)
KeyboardInterrupt

@ritiek
Copy link
Member

ritiek commented Sep 7, 2018

Duplicate of #341.

@ritiek ritiek closed this as completed Sep 7, 2018
@ritiek ritiek added the Duplicate Duplicate Issue/PR label Sep 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate Duplicate Issue/PR
Projects
None yet
Development

No branches or pull requests

2 participants