Closed sybessonne closed 4 years ago
Same here, when trying to download this songs: Downloading "https://open.spotify.com/track/1ULa3GfdMKs0MfRpm6xVlu" Downloading "https://open.spotify.com/track/0PyWKgNmGiYTFe6MXN5U4K" Downloading "https://open.spotify.com/track/40Cjeug6bYFqYrta3w7cMT" Downloading "https://open.spotify.com/track/7ujx3NYtwO2LkmKGz59mXp" Downloading "https://open.spotify.com/track/0Fv5N0cHBsl4bzCbollCAS"
Exception in thread Thread-368:
Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/home/gcruz/.local/lib/python3.6/site-packages/spotdl/util.py", line 39, in run
**self._kwargs
File "/home/gcruz/.local/lib/python3.6/site-packages/spotdl/command_line/core.py", line 349, in threaded_metadata
metadata = search_metadata.on_youtube_and_spotify()
File "/home/gcruz/.local/lib/python3.6/site-packages/spotdl/metadata_search.py", line 159, in on_youtube_and_spotify
metadata = caller(self.track)
File "/home/gcruz/.local/lib/python3.6/site-packages/spotdl/metadata_search.py", line 287, in _on_youtube_and_spotify_for_type_spotify
youtube_metadata = self.providers["youtube"].from_url(youtube_video["url"])
File "/home/gcruz/.local/lib/python3.6/site-packages/spotdl/metadata/providers/youtube.py", line 421, in from_url
content = pytube.YouTube(url)
File "/home/gcruz/.local/lib/python3.6/site-packages/pytube/__main__.py", line 92, in __init__
self.descramble()
File "/home/gcruz/.local/lib/python3.6/site-packages/spotdl/patch/youtube.py", line 169, in descramble
self.js_url = extract.js_url(self.embed_html)
NameError: name 'extract' is not defined
Pytube3 error. Try v3. Should be fixed
What is the purpose of your issue?
Description
I'm in WSL in windows 10. I would like to download a track but I have a bug.
Log
spotdl -s https://open.spotify.com/track/3DMgqRAbgkH3v2AoRsaHdP -nm -ll DEBUG
DEBUG:spotdl.command_line.main:24:
spotdl 2.2.2
DEBUG:spotdl.authorize.services.spotify:71:
Setting master Spotify credentials.
DEBUG:spotdl.command_line.core:130:
Received arguments: {'manual': False, 'no_metadata': True, 'no_encode': False, 'overwrite': 'prompt', 'quality': 'best', 'input_ext': 'automatic', 'output_ext': 'mp3', 'write_to': None, 'trim_silence': False, 'search_format': '{artist} - {track-name} lyrics', 'dry_run': False, 'no_spaces': False, 'output_file': '{artist} - {track-name}.{output-ext}', 'skip_file': None, 'write_successful_file': None, 'spotify_client_id': '4fe3fecfe5334023a1472516cc99d805', 'spotify_client_secret': '0f02b7c483c04257984695007a4a8d5c', 'log_level': 'DEBUG', 'song': ['https://open.spotify.com/track/3DMgqRAbgkH3v2AoRsaHdP'], 'list': None, 'playlist': None, 'album': None, 'all_albums': None, 'username': None, 'write_m3u': False, 'processor': 'synchronous', 'remove_config': False}
DEBUG:spotdl.authorize.services.spotify:66:
Reading cached master Spotify credentia ls.
INFO:spotdl.command_line.core:140:
Downloading "https://open.spotify.com/track/3DMgqRAbgkH3v2AoRsaHdP"
DEBUG:spotdl.authorize.services.spotify:66:
Reading cached master Spotify credentials.
DEBUG:spotdl.metadata_search:322:
Extracting YouTube metadata for input Spotify URI.
DEBUG:spotdl.metadata_search:346:
Extracting Spotify metadata for input Spotify URI.
DEBUG:spotdl.metadata.providers.spotify:77:
Fetching Spotify metadata for "https://open.spotify.com/track/3DMgqRAbgkH3v2AoRsaHdP".
DEBUG:spotdl.metadata.providers.youtube:232:
Fetching YouTube results for "Indochine - Song for a Dream lyrics" at "https://www.youtube.com/results?sp=EgIQAQ%253D%253D&q=Indochine%20-%20Song%20for%20a%20Dream%20lyrics".
DEBUG:spotdl.metadata.providers.youtube:189:
YouTube returned malformed HTML. Attempting to parse possible JSON data.
DEBUG:spotdl.metadata.providers.youtube:62:
Matched with: Indochine - Song for a Dream (Clip officiel) (https://www.youtube.com/watch?v=DkffTDkSADI) [5:34]
DEBUG:spotdl.metadata.providers.youtube:419:
Fetching YouTube metadata for "https://www.youtube.com/watch?v=DkffTDkSADI".
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner self.run()
File "/home/elviro/.local/lib/python3.6/site-packages/spotdl/util.py", line 39, in run **self._kwargs
File "/home/elviro/.local/lib/python3.6/site-packages/spotdl/command_line/core.py", line 347, in threaded_metadata
metadata = search_metadata.on_youtube()
File "/home/elviro/.local/lib/python3.6/site-packages/spotdl/metadata_search.py", line 190, in on_youtube
metadata = caller(self.track)
File "/home/elviro/.local/lib/python3.6/site-packages/spotdl/metadata_search.py", line 324, in _on_youtube_for_type_spotify
youtube_metadata = self.providers["youtube"].from_url(youtube_video["url"])
File "/home/elviro/.local/lib/python3.6/site-packages/spotdl/metadata/providers/youtube.py", line 421, in from_url
content = pytube.YouTube(url)
File "/home/elviro/.local/lib/python3.6/site-packages/pytube/main.py", line 92, in init self.descramble()
File "/home/elviro/.local/lib/python3.6/site-packages/spotdl/patch/youtube.py", line 169, in descramble
self.js_url = extract.js_url(self.embed_html)
NameError: name 'extract' is not defined