Skip to content
This repository has been archived by the owner on Oct 31, 2022. It is now read-only.

Error 410 #5

Open
2 tasks
pablolob opened this issue Feb 26, 2022 · 2 comments
Open
2 tasks

Error 410 #5

pablolob opened this issue Feb 26, 2022 · 2 comments

Comments

@pablolob
Copy link

What is the purpose of your issue?

  • [] Bug
  • Feature Request
  • [x ] Question
  • Other

Description

Hi, just installed the downloader but I am not able to download.
I'm on wsl Ubuntu and the version of Python is 3.8.10
Thanks

Log

❯ python3 spotdl --song https://www.youtube.com/watch\?v\=Rp_JAPb5II4 --log-level=DEBUG
/usr/lib/python3/dist-packages/requests/init.py:89: RequestsDependencyWarning: urllib3 (1.26.8) or chardet (3.0.4) doesn't match a supported version!
warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "
DEBUG:spotdl.command_line.main:24:
spotdl 2.2.2

WARNING:spotdl.command_line.arguments:348:
FFmpeg was not found in PATH. Will not re-encode media to specified output format.

DEBUG:spotdl.authorize.services.spotify:71:
Setting master Spotify credentials.

DEBUG:spotdl.command_line.core:130:
Received arguments:
{'manual': False, 'no_metadata': False, 'no_encode': True, '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://www.youtube.com/watch?v=Rp_JAPb5II4'], '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 credentials.

INFO:spotdl.command_line.core:140:
Downloading "https://www.youtube.com/watch?v=Rp_JAPb5II4"

DEBUG:spotdl.authorize.services.spotify:66:
Reading cached master Spotify credentials.

DEBUG:spotdl.metadata_search:295:
Extracting YouTube and Spotify metadata for input YouTube URL.

DEBUG:spotdl.metadata_search:328:
Extracting YouTube metadata for input YouTube URL.

DEBUG:spotdl.metadata.providers.youtube:417:
Fetching YouTube metadata for "https://www.youtube.com/watch?v=Rp_JAPb5II4".

Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/home/pablo/.local/lib/python3.8/site-packages/spotdl/util.py", line 37, in run
self._return = self._target(
File "/home/pablo/.local/lib/python3.8/site-packages/spotdl/command_line/core.py", line 349, in threaded_metadata
metadata = search_metadata.on_youtube_and_spotify()
File "/home/pablo/.local/lib/python3.8/site-packages/spotdl/metadata_search.py", line 159, in on_youtube_and_spotify
metadata = caller(self.track)
File "/home/pablo/.local/lib/python3.8/site-packages/spotdl/metadata_search.py", line 296, in _on_youtube_and_spotify_for_type_youtube
youtube_metadata = self._on_youtube_for_type_youtube(url)
File "/home/pablo/.local/lib/python3.8/site-packages/spotdl/metadata_search.py", line 329, in _on_youtube_for_type_youtube
youtube_metadata = self.providers["youtube"].from_url(url)
File "/home/pablo/.local/lib/python3.8/site-packages/spotdl/metadata/providers/youtube.py", line 419, in from_url
content = pytube.YouTube(url)
File "/home/pablo/.local/lib/python3.8/site-packages/pytube/main.py", line 91, in init
self.prefetch()
File "/home/pablo/.local/lib/python3.8/site-packages/pytube/main.py", line 181, in prefetch
self.vid_info_raw = request.get(self.vid_info_url)
File "/home/pablo/.local/lib/python3.8/site-packages/pytube/request.py", line 36, in get
return _execute_request(url).read().decode("utf-8")
File "/home/pablo/.local/lib/python3.8/site-packages/pytube/request.py", line 24, in _execute_request
return urlopen(request) # nosec
File "/usr/lib/python3.8/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.8/urllib/request.py", line 531, in open
response = meth(req, response)
File "/usr/lib/python3.8/urllib/request.py", line 640, in http_response
response = self.parent.error(
File "/usr/lib/python3.8/urllib/request.py", line 563, in error
result = self._call_chain(*args)
File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain
result = func(*args)
File "/usr/lib/python3.8/urllib/request.py", line 755, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "/usr/lib/python3.8/urllib/request.py", line 531, in open
response = meth(req, response)
File "/usr/lib/python3.8/urllib/request.py", line 640, in http_response
response = self.parent.error(
File "/usr/lib/python3.8/urllib/request.py", line 569, in error
return self._call_chain(*args)
File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain
result = func(*args)
File "/usr/lib/python3.8/urllib/request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 410: Gone

@charles-typ
Copy link

You can remove that error code by upgrading/installing pytube
python -m pip install --upgrade pytube

But that won't fix the problem entirely, I solved it by using the newest version instead

@ghost
Copy link

ghost commented Jul 10, 2022

Thanks @charles-typ :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants