spotDL / spotify-downloader

Download your Spotify playlists and songs along with album art and metadata (from YouTube if a match is found).
https://spotdl.readthedocs.io/en/latest/
MIT License
17.03k stars 1.56k forks source link

Change this title, poorly formatted issues will not be handled #1922

Closed JustDeax closed 11 months ago

JustDeax commented 11 months ago

System OS

Windows

Python Version

3.9 (CPython)

Install Source

pip / PyPi

Install version / commit hash

v4.2.1

Expected Behavior vs Actual Behavior

No response

Steps to reproduce - Ensure to include actual links!

When downloading my playlist, I get a mistake, I use VPN, since there is no YouTube Music in my country

spotdl https://open.spotify.com/playlist/1guUSeAhjZQILxuS3WG6Pb?si=8c5bcd107c684291 --format flac

From below the entire conclusion from the consoles

Traceback

spotdl https://open.spotify.com/playlist/1guUSeAhjZQILxuS3WG6Pb?si=8c5bcd107c684291 --format flac

╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ C:\Users\USER\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connection.py:200 │
│ in _new_conn                                                                                     │
│                                                                                                  │
│   199 │   │   try:                                                                               │
│ ❱ 200 │   │   │   sock = connection.create_connection(                                           │
│   201 │   │   │   │   (self._dns_host, self.port),                                               │
│                                                                                                  │
│ C:\Users\USER\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\util\connection.p │
│ y:60 in create_connection                                                                        │
│                                                                                                  │
│    59 │                                                                                          │
│ ❱  60 │   for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):                 │
│    61 │   │   af, socktype, proto, canonname, sa = res                                           │
│                                                                                                  │
│ C:\Users\USER\AppData\Local\Programs\Python\Python39\lib\socket.py:954 in getaddrinfo            │
│                                                                                                  │
│   953 │   addrlist = []                                                                          │
│ ❱ 954 │   for res in _socket.getaddrinfo(host, port, family, type, proto, flags):                │
│   955 │   │   af, socktype, proto, canonname, sa = res                                           │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
gaierror: [Errno 11001] getaddrinfo failed

The above exception was the direct cause of the following exception:

╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ C:\Users\USER\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connectionpool.py │
│ :790 in urlopen                                                                                  │
│                                                                                                  │
│    789 │   │   │   # Make the request on the HTTPConnection object                               │
│ ❱  790 │   │   │   response = self._make_request(                                                │
│    791 │   │   │   │   conn,                                                                     │
│                                                                                                  │
│ C:\Users\USER\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connectionpool.py │
│ :491 in _make_request                                                                            │
│                                                                                                  │
│    490 │   │   │   │   new_e = _wrap_proxy_error(new_e, conn.proxy.scheme)                       │
│ ❱  491 │   │   │   raise new_e                                                                   │
│    492                                                                                           │
│                                                                                                  │
│ C:\Users\USER\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connectionpool.py │
│ :467 in _make_request                                                                            │
│                                                                                                  │
│    466 │   │   │   try:                                                                          │
│ ❱  467 │   │   │   │   self._validate_conn(conn)                                                 │
│    468 │   │   │   except (SocketTimeout, BaseSSLError) as e:                                    │
│                                                                                                  │
│ C:\Users\USER\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connectionpool.py │
│ :1092 in _validate_conn                                                                          │
│                                                                                                  │
│   1091 │   │   if conn.is_closed:                                                                │
│ ❱ 1092 │   │   │   conn.connect()                                                                │
│   1093                                                                                           │
│                                                                                                  │
│ C:\Users\USER\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connection.py:604 │
│ in connect                                                                                       │
│                                                                                                  │
│   603 │   │   sock: socket.socket | ssl.SSLSocket                                                │
│ ❱ 604 │   │   self.sock = sock = self._new_conn()                                                │
│   605 │   │   server_hostname: str = self.host                                                   │
│                                                                                                  │
│ C:\Users\USER\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connection.py:207 │
│ in _new_conn                                                                                     │
│                                                                                                  │
│   206 │   │   except socket.gaierror as e:                                                       │
│ ❱ 207 │   │   │   raise NameResolutionError(self.host, self, e) from e                           │
│   208 │   │   except SocketTimeout as e:                                                         │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
NameResolutionError: <urllib3.connection.HTTPSConnection object at 0x00000232FB016CD0>: Failed to resolve 'www.azlyrics.com' ([Errno 11001] getaddrinfo failed)

The above exception was the direct cause of the following exception:

╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ C:\Users\USER\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\adapters.py:486  │
│ in send                                                                                          │
│                                                                                                  │
│   485 │   │   try:                                                                               │
│ ❱ 486 │   │   │   resp = conn.urlopen(                                                           │
│   487 │   │   │   │   method=request.method,                                                     │
│                                                                                                  │
│ C:\Users\USER\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connectionpool.py │
│ :844 in urlopen                                                                                  │
│                                                                                                  │
│    843 │   │   │                                                                                 │
│ ❱  844 │   │   │   retries = retries.increment(                                                  │
│    845 │   │   │   │   method, url, error=new_e, _pool=self, _stacktrace=sys.exc_info()[2]       │
│                                                                                                  │
│ C:\Users\USER\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\util\retry.py:515 │
│ in increment                                                                                     │
│                                                                                                  │
│   514 │   │   │   reason = error or ResponseError(cause)                                         │
│ ❱ 515 │   │   │   raise MaxRetryError(_pool, url, reason) from reason  # type: ignore[arg-type   │
│   516                                                                                            │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
MaxRetryError: HTTPSConnectionPool(host='www.azlyrics.com', port=443): Max retries exceeded with url: / (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at  
0x00000232FB016CD0>: Failed to resolve 'www.azlyrics.com' ([Errno 11001] getaddrinfo failed)"))

During handling of the above exception, another exception occurred:

╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ C:\Users\USER\AppData\Local\Programs\Python\Python39\lib\runpy.py:197 in _run_module_as_main     │
│                                                                                                  │
│   196 │   │   sys.argv[0] = mod_spec.origin                                                      │
│ ❱ 197 │   return _run_code(code, main_globals, None,                                             │
│   198 │   │   │   │   │    "__main__", mod_spec)                                                 │
│                                                                                                  │
│ C:\Users\USER\AppData\Local\Programs\Python\Python39\lib\runpy.py:87 in _run_code                │
│                                                                                                  │
│    86 │   │   │   │   │      __spec__ = mod_spec)                                                │
│ ❱  87 │   exec(code, run_globals)                                                                │
│    88 │   return run_globals                                                                     │
│                                                                                                  │
│ in <module>:7                                                                                    │
│                                                                                                  │
│ C:\Users\USER\AppData\Local\Programs\Python\Python39\lib\site-packages\spotdl\console\entry_poin │
│ t.py:110 in console_entry_point                                                                  │
│                                                                                                  │
│   109 │   # for download, load and preload operations                                            │
│ ❱ 110 │   downloader = Downloader(downloader_settings)                                           │
│   111                                                                                            │
│                                                                                                  │
│ C:\Users\USER\AppData\Local\Programs\Python\Python39\lib\site-packages\spotdl\download\downloade │
│ r.py:188 in __init__                                                                             │
│                                                                                                  │
│   187 │   │   │                                                                                  │
│ ❱ 188 │   │   │   self.lyrics_providers.append(lyrics_class())                                   │
│   189                                                                                            │
│                                                                                                  │
│ C:\Users\USER\AppData\Local\Programs\Python\Python39\lib\site-packages\spotdl\providers\lyrics\a │
│ zlyrics.py:26 in __init__                                                                        │
│                                                                                                  │
│    25 │   │                                                                                      │
│ ❱  26 │   │   self.session.get("https://www.azlyrics.com/")                                      │
│    27                                                                                            │
│                                                                                                  │
│ C:\Users\USER\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\sessions.py:602  │
│ in get                                                                                           │
│                                                                                                  │
│   601 │   │   kwargs.setdefault("allow_redirects", True)                                         │
│ ❱ 602 │   │   return self.request("GET", url, **kwargs)                                          │
│   603                                                                                            │
│                                                                                                  │
│ C:\Users\USER\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\sessions.py:589  │
│ in request                                                                                       │
│                                                                                                  │
│   588 │   │   send_kwargs.update(settings)                                                       │
│ ❱ 589 │   │   resp = self.send(prep, **send_kwargs)                                              │
│   590                                                                                            │
│                                                                                                  │
│ C:\Users\USER\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\sessions.py:703  │
│ in send                                                                                          │
│                                                                                                  │
│   702 │   │   # Send the request                                                                 │
│ ❱ 703 │   │   r = adapter.send(request, **kwargs)                                                │
│   704                                                                                            │
│ C:\Users\USER\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\adapters.py:519  │
│ in send                                                                                          │
│                                                                                                  │
│   518 │   │   │                                                                                  │
│ ❱ 519 │   │   │   raise ConnectionError(e, request=request)                                      │
│   520                                                                                            │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
ConnectionError: HTTPSConnectionPool(host='www.azlyrics.com', port=443): Max retries exceeded with url: / (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at
0x00000232FB016CD0>: Failed to resolve 'www.azlyrics.com' ([Errno 11001] getaddrinfo failed)"))

Other details

No response

xnetcat commented 11 months ago

disable az lyrics provider

--lyrics genius