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

Metadata Don't Match | LookupError: No results found for song And 500 Internal Server Error #1975

Closed paulo-2048 closed 5 months ago

paulo-2048 commented 9 months ago

System OS

Windows

Python Version

3.11 (CPython)

Install Source

pip / PyPi

Install version / commit hash

4.2.4

Expected Behavior vs Actual Behavior

Expected Behavior: Download Sanchit Balhara - Jim’s Theme from https://music.youtube.com/watch?v=PWq4T21YOLQ

Actual Behavior: LookupError: No results found for song: Sanchit Balhara - Jim’s Theme 500 Internal Server Error

Steps to reproduce - Ensure to include actual links!

  1. Run spotdl https://open.spotify.com/album/2ooWY7xriwwyj23dAI32C2 --bitrate 320k --audio youtube-music

Traceback

[11:12:58] DEBUG    MainThread - Downloader settings: {'audio_providers': ['youtube-music'], 'lyrics_providers': ['genius',        downloader.py:130
                    'azlyrics', 'musixmatch'], 'playlist_numbering': False, 'scan_for_songs': False, 'm3u': None, 'output':
                    '{artists} - {title}.{output-ext}', 'overwrite': 'skip', 'search_query': None, 'ffmpeg': 'ffmpeg', 'bitrate':
                    '320k', 'ffmpeg_args': None, 'format': 'mp3', 'save_file': None, 'filter_results': True, 'threads': 4,
                    'cookie_file': None, 'restrict': None, 'print_errors': False, 'sponsor_block': False, 'preload': False,
                    'archive': None, 'load_config': True, 'log_level': 'DEBUG', 'simple_tui': False, 'fetch_albums': False,
                    'id3_separator': '/', 'ytm_data': False, 'add_unavailable': False, 'generate_lrc': False,
                    'force_update_metadata': False, 'only_verified_results': False, 'sync_without_deleting': False,
                    'max_filename_length': None, 'yt_dlp_args': None, 'detect_formats': None, 'save_errors': None,
                    'ignore_albums': None, 'proxy': None, 'skip_explicit': False, 'log_format': None, 'redownload': False}
[11:12:58] DEBUG    MainThread - FFmpeg path: ffmpeg                                                                               downloader.py:148
[11:12:58] DEBUG    MainThread - Found 0 known songs                                                                               downloader.py:183
[11:13:00] DEBUG    MainThread - Archive: 0 urls                                                                                   downloader.py:230
[11:13:00] DEBUG    MainThread - Downloader initialized                                                                            downloader.py:232
[11:13:00] INFO     MainThread - Processing query: https://open.spotify.com/album/2ooWY7xriwwyj23dAI32C2                               search.py:132
[11:13:00] INFO     MainThread - Found 4 songs in Pathaan (Album)                                                                      search.py:284
[11:13:00] DEBUG    MainThread - Found 4 songs in 1 lists                                                                              search.py:322
[11:13:00] DEBUG    MainThread - Downloading 4 songs                                                                               downloader.py:279
[11:13:00] DEBUG    asyncio_0 - Found duplicate songs for Vishal-Shekhar - Besharam Rang at [WindowsPath('Vishal-Shekhar, Shilpa   downloader.py:490
                    Rao, Caralisa Monteiro, Vishal Dadlani, Shekhar Ravjiani, Kumaar - Besharam Rang.mp3')]
[11:13:00] DEBUG    asyncio_1 - Found duplicate songs for Vishal-Shekhar - Jhoome Jo Pathaan at [WindowsPath('Vishal-Shekhar,      downloader.py:490
                    Arijit Singh, Sukriti Kakar, Vishal Dadlani, Shekhar Ravjiani, Kumaar - Jhoome Jo Pathaan.mp3')]
[11:13:00] INFO     asyncio_0 - Skipping Vishal-Shekhar - Besharam Rang (file already exists) (duplicate)                          downloader.py:499
[11:13:00] INFO     asyncio_1 - Skipping Vishal-Shekhar - Jhoome Jo Pathaan (file already exists) (duplicate)                      downloader.py:499
[11:13:02] DEBUG    asyncio_2 - Genius failed to find lyrics for Sanchit Balhara - Pathaan’s Theme                                 downloader.py:405
[11:13:02] DEBUG    asyncio_3 - Genius failed to find lyrics for Sanchit Balhara - Jim’s Theme                                     downloader.py:405
[11:13:03] DEBUG    asyncio_2 - AzLyrics failed to find lyrics for Sanchit Balhara - Pathaan’s Theme                               downloader.py:405
[11:13:03] DEBUG    asyncio_3 - AzLyrics failed to find lyrics for Sanchit Balhara - Jim’s Theme                                   downloader.py:405
[11:13:03] DEBUG    asyncio_2 - MusixMatch failed to find lyrics for Sanchit Balhara - Pathaan’s Theme                             downloader.py:405
[11:13:03] DEBUG    asyncio_2 - No lyrics found for Sanchit Balhara - Pathaan’s Theme, lyrics providers: Genius, AzLyrics,         downloader.py:555
                    MusixMatch
[11:13:03] DEBUG    asyncio_2 - [7l00c4RIiRh9MngY4Mt6jG] Searching for sanchit balhara, ankit balhara, magdalena supel, kit bee -        base.py:167
                    pathaan’s theme
[11:13:03] DEBUG    asyncio_3 - MusixMatch failed to find lyrics for Sanchit Balhara - Jim’s Theme                                 downloader.py:405
[11:13:03] DEBUG    asyncio_3 - No lyrics found for Sanchit Balhara - Jim’s Theme, lyrics providers: Genius, AzLyrics, MusixMatch  downloader.py:555
[11:13:03] DEBUG    asyncio_3 - [067vgMqZQ7GdBeRc98bwev] Searching for sanchit balhara, ankit balhara, maanya narang, riya duggal -      base.py:167
                    jim’s theme
[11:13:03] DEBUG    asyncio_2 - [7l00c4RIiRh9MngY4Mt6jG] Found 1 results for ISRC INY092200128                                           base.py:180
[11:13:03] DEBUG    asyncio_2 - [7l00c4RIiRh9MngY4Mt6jG] Filtered to 0 ISRC results                                                      base.py:192
[11:13:03] DEBUG    asyncio_3 - [067vgMqZQ7GdBeRc98bwev] Found 1 results for ISRC INY092200129                                           base.py:180
[11:13:03] DEBUG    asyncio_3 - [067vgMqZQ7GdBeRc98bwev] Filtered to 0 ISRC results                                                      base.py:192
[11:13:03] DEBUG    asyncio_2 - [7l00c4RIiRh9MngY4Mt6jG] Found 1 results for search query sanchit balhara, ankit balhara, magdalena      base.py:221
                    supel, kit bee - pathaan’s theme with options {'filter': 'songs', 'ignore_spelling': True, 'limit': 50}
[11:13:03] DEBUG    asyncio_2 - [7l00c4RIiRh9MngY4Mt6jG] Have to filter results: True                                                    base.py:244
[11:13:03] DEBUG    asyncio_2 - [7l00c4RIiRh9MngY4Mt6jG] Filtered to 0 results                                                           base.py:256
[11:13:04] DEBUG    asyncio_3 - [067vgMqZQ7GdBeRc98bwev] Found 0 results for search query sanchit balhara, ankit balhara, maanya narang, base.py:221
                    riya duggal - jim’s theme with options {'filter': 'songs', 'ignore_spelling': True, 'limit': 50}
[11:13:04] DEBUG    asyncio_3 - [067vgMqZQ7GdBeRc98bwev] Have to filter results: True                                                    base.py:244
[11:13:04] DEBUG    asyncio_3 - [067vgMqZQ7GdBeRc98bwev] Filtered to 0 results                                                           base.py:256
[11:13:05] DEBUG    asyncio_2 - [7l00c4RIiRh9MngY4Mt6jG] Found 60 results for search query sanchit balhara, ankit balhara, magdalena     base.py:221
                    supel, kit bee - pathaan’s theme with options {'filter': 'videos', 'ignore_spelling': True, 'limit': 50}
[11:13:05] DEBUG    asyncio_2 - [7l00c4RIiRh9MngY4Mt6jG] Have to filter results: True                                                    base.py:244
[11:13:05] DEBUG    asyncio_2 - [7l00c4RIiRh9MngY4Mt6jG] Filtered to 0 results                                                           base.py:256
[11:13:05] DEBUG    asyncio_2 - [7l00c4RIiRh9MngY4Mt6jG] No results found                                                                base.py:286
[11:13:05] DEBUG    asyncio_2 - YouTubeMusic failed to find Sanchit Balhara - Pathaan’s Theme                                      downloader.py:381
[11:13:05] ERROR    asyncio_2 - Traceback (most recent call last):                                                           progress_handler.py:358
                      File "F:\Python\Lib\site-packages\spotdl\download\downloader.py", line 616, in search_and_download
                        download_url = self.search(song)
                                       ^^^^^^^^^^^^^^^^^
                      File "F:\Python\Lib\site-packages\spotdl\download\downloader.py", line 383, in search
                        raise LookupError(f"No results found for song: {song.display_name}")
                    LookupError: No results found for song: Sanchit Balhara - Pathaan’s Theme

                    ╭───────────────────────────────── Traceback (most recent call last) ──────────────────────────────────╮
                    │ F:\Python\Lib\site-packages\spotdl\download\downloader.py:616 in search_and_download                 │
                    │                                                                                                      │
                    │   613 │   │   │   # Create the output directory if it doesn't exist                                  │
                    │   614 │   │   │   output_file.parent.mkdir(parents=True, exist_ok=True)                              │
                    │   615 │   │   │   if song.download_url is None:                                                      │
                    │ ❱ 616 │   │   │   │   download_url = self.search(song)                                               │
                    │   617 │   │   │   else:                                                                              │
                    │   618 │   │   │   │   download_url = song.download_url                                               │
                    │   619                                                                                                │
                    │                                                                                                      │
                    │ F:\Python\Lib\site-packages\spotdl\download\downloader.py:383 in search                              │
                    │                                                                                                      │
                    │   380 │   │   │                                                                                      │
                    │   381 │   │   │   logger.debug("%s failed to find %s", audio_provider.name, song.display_name)       │
                    │   382 │   │                                                                                          │
                    │ ❱ 383 │   │   raise LookupError(f"No results found for song: {song.display_name}")                   │
                    │   384 │                                                                                              │
                    │   385 │   def search_lyrics(self, song: Song) -> Optional[str]:                                      │
                    │   386 │   │   """                                                                                    │
                    ╰──────────────────────────────────────────────────────────────────────────────────────────────────────╯
                    LookupError: No results found for song: Sanchit Balhara - Pathaan’s Theme
[11:13:05] DEBUG    asyncio_3 - [067vgMqZQ7GdBeRc98bwev] Found 59 results for search query sanchit balhara, ankit balhara, maanya        base.py:221
                    narang, riya duggal - jim’s theme with options {'filter': 'videos', 'ignore_spelling': True, 'limit': 50}
[11:13:05] DEBUG    asyncio_3 - [067vgMqZQ7GdBeRc98bwev] Have to filter results: True                                                    base.py:244
[11:13:05] DEBUG    asyncio_3 - [067vgMqZQ7GdBeRc98bwev] Filtered to 0 results                                                           base.py:256
[11:13:05] DEBUG    asyncio_3 - [067vgMqZQ7GdBeRc98bwev] No results found                                                                base.py:286
[11:13:05] DEBUG    asyncio_3 - YouTubeMusic failed to find Sanchit Balhara - Jim’s Theme                                          downloader.py:381
[11:13:05] ERROR    asyncio_3 - Traceback (most recent call last):                                                           progress_handler.py:358
                      File "F:\Python\Lib\site-packages\spotdl\download\downloader.py", line 616, in search_and_download
                        download_url = self.search(song)
                                       ^^^^^^^^^^^^^^^^^
                      File "F:\Python\Lib\site-packages\spotdl\download\downloader.py", line 383, in search
                        raise LookupError(f"No results found for song: {song.display_name}")
                    LookupError: No results found for song: Sanchit Balhara - Jim’s Theme

                    ╭───────────────────────────────── Traceback (most recent call last) ──────────────────────────────────╮
                    │ F:\Python\Lib\site-packages\spotdl\download\downloader.py:616 in search_and_download                 │
                    │                                                                                                      │
                    │   613 │   │   │   # Create the output directory if it doesn't exist                                  │
                    │   614 │   │   │   output_file.parent.mkdir(parents=True, exist_ok=True)                              │
                    │   615 │   │   │   if song.download_url is None:                                                      │
                    │ ❱ 616 │   │   │   │   download_url = self.search(song)                                               │
                    │   617 │   │   │   else:                                                                              │
                    │   618 │   │   │   │   download_url = song.download_url                                               │
                    │   619                                                                                                │
                    │                                                                                                      │
                    │ F:\Python\Lib\site-packages\spotdl\download\downloader.py:383 in search                              │
                    │                                                                                                      │
                    │   380 │   │   │                                                                                      │
                    │   381 │   │   │   logger.debug("%s failed to find %s", audio_provider.name, song.display_name)       │
                    │   382 │   │                                                                                          │
                    │ ❱ 383 │   │   raise LookupError(f"No results found for song: {song.display_name}")                   │
                    │   384 │                                                                                              │
                    │   385 │   def search_lyrics(self, song: Song) -> Optional[str]:                                      │
                    │   386 │   │   """                                                                                    │
                    ╰──────────────────────────────────────────────────────────────────────────────────────────────────────╯
                    LookupError: No results found for song: Sanchit Balhara - Jim’s Theme
[11:13:05] DEBUG    MainThread - Took 5 seconds                                                                                   entry_point.py:151

Other details

When I run directly through CMD, I get this error:

When I run through WEB, I get 500 Internal Error Too:

-> Maybe this is caused by the presence of the single quotation mark in the name ( ' ) -> Or metadata don't match, what hinders the search, would it be like searching only by the name of the song and album?

Rizwan-Basheer commented 9 months ago

i also got the same error on Window OS as well Ubuntu spotdl https://open.spotify.com/track/1LjYFVvhXmuP3RgErQBYkH --cookie-file cookies.txt Processing query: https://open.spotify.com/track/1LjYFVvhXmuP3RgErQBYkH LookupError: No results found for song: Celia Cloten - Innocent Face

stale[bot] commented 6 months ago

This issue has been automatically marked stale because there hasn't been any activity for the last 30 days.

Rizwan-Basheer commented 6 months ago

hey anybody found the solution of this issue ? please help i still getting this error

xnetcat commented 5 months ago

i also got the same error on Window OS as well Ubuntu spotdl open.spotify.com/track/1LjYFVvhXmuP3RgErQBYkH --cookie-file cookies.txt Processing query: open.spotify.com/track/1LjYFVvhXmuP3RgErQBYkH LookupError: No results found for song: Celia Cloten - Innocent Face

looks like it' working for me on v4.2.5. It might get fixed for you after update, but nothing might change for you because of your country. Try using VPN or other audio provider

Rizwan-Basheer commented 5 months ago

but we have latest version v4.2.4 how can we update to v4.2.5

xnetcat commented 5 months ago

I will be releasing v4.2.5 in few minutes