question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"YouTube returned no videos for the search query" for most tracks

See original GitHub issue

Description

Most tracks fail with “YouTube returned no videos for the search query”. For example:

$ spotdl -s https://open.spotify.com/track/3ARO9xyyjoqPX2Xzj5Tgrb -ll=debug

when the track is clearly available in the search results URL (as in the debug log posted below).

Log

$ spotdl -s https://open.spotify.com/track/3ARO9xyyjoqPX2Xzj5Tgrb -ll=debug
DEBUG:spotdl.metadata.providers.youtube:127:
Retrying since YouTube returned invalid response for search results. Retries left: 4.

DEBUG:spotdl.metadata.providers.youtube:122:
Fetching YouTube results for "Loving Caliber - You Set My World on Fire (Rogan Gold Remix) lyrics" at "https://www.youtube.com/results?sp=EgIQAQ%253D%253D&q=Loving%20Caliber%20-%20You%20Set%20My%20World%20on%20Fire%20%28Rogan%20Gold%20Remix%29%20lyrics".

DEBUG:spotdl.metadata.providers.youtube:127:
Retrying since YouTube returned invalid response for search results. Retries left: 3.

DEBUG:spotdl.metadata.providers.youtube:122:
Fetching YouTube results for "Loving Caliber - You Set My World on Fire (Rogan Gold Remix) lyrics" at "https://www.youtube.com/results?sp=EgIQAQ%253D%253D&q=Loving%20Caliber%20-%20You%20Set%20My%20World%20on%20Fire%20%28Rogan%20Gold%20Remix%29%20lyrics".

DEBUG:spotdl.metadata.providers.youtube:127:
Retrying since YouTube returned invalid response for search results. Retries left: 2.

DEBUG:spotdl.metadata.providers.youtube:122:
Fetching YouTube results for "Loving Caliber - You Set My World on Fire (Rogan Gold Remix) lyrics" at "https://www.youtube.com/results?sp=EgIQAQ%253D%253D&q=Loving%20Caliber%20-%20You%20Set%20My%20World%20on%20Fire%20%28Rogan%20Gold%20Remix%29%20lyrics".

DEBUG:spotdl.metadata.providers.youtube:127:
Retrying since YouTube returned invalid response for search results. Retries left: 1.

DEBUG:spotdl.metadata.providers.youtube:122:
Fetching YouTube results for "Loving Caliber - You Set My World on Fire (Rogan Gold Remix) lyrics" at "https://www.youtube.com/results?sp=EgIQAQ%253D%253D&q=Loving%20Caliber%20-%20You%20Set%20My%20World%20on%20Fire%20%28Rogan%20Gold%20Remix%29%20lyrics".

ERROR:spotdl.command_line.core:223:
Y >>  spotdl -s https://open.spotify.com/track/3ARO9xyyjoqPX2Xzj5Tgrb -ll=debug                                                                                                                                                      02:55:05 
DEBUG:spotdl.authorize.services.spotify:37:
Setting master Spotify credentials.

DEBUG:spotdl.command_line.core:52:
Received arguments:
{'manual': False, 'no_metadata': False, '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/3ARO9xyyjoqPX2Xzj5Tgrb'], 'list': None, 'playlist': None, 'album': None, 'all_albums': None, 'username': None, 'write_m3u': False, 'processor': 'synchronous', 'remove_config': False}

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

INFO:spotdl.command_line.core:62:
Downloading "https://open.spotify.com/track/3ARO9xyyjoqPX2Xzj5Tgrb"

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

DEBUG:spotdl.metadata_search:182:
Extracting YouTube and Spotify metadata for input Spotify URI.

DEBUG:spotdl.metadata_search:245:
Extracting Spotify metadata for input Spotify URI.

DEBUG:spotdl.metadata.providers.spotify:25:
Fetching Spotify metadata for "https://open.spotify.com/track/3ARO9xyyjoqPX2Xzj5Tgrb".

DEBUG:spotdl.metadata.providers.youtube:122:
Fetching YouTube results for "Loving Caliber - You Set My World on Fire (Rogan Gold Remix) lyrics" at "https://www.youtube.com/results?sp=EgIQAQ%253D%253D&q=Loving%20Caliber%20-%20You%20Set%20My%20World%20on%20Fire%20%28Rogan%20Gold%20Remix%29%20lyrics".

DEBUG:spotdl.metadata.providers.youtube:127:
Retrying since YouTube returned invalid response for search results. Retries left: 5.

DEBUG:spotdl.metadata.providers.youtube:122:
Fetching YouTube results for "Loving Caliber - You Set My World on Fire (Rogan Gold Remix) lyrics" at "https://www.youtube.com/results?sp=EgIQAQ%253D%253D&q=Loving%20Caliber%20-%20You%20Set%20My%20World%20on%20Fire%20%28Rogan%20Gold%20Remix%29%20lyrics".

DEBUG:spotdl.metadata.providers.youtube:127:
Retrying since YouTube returned invalid response for search results. Retries left: 4.

DEBUG:spotdl.metadata.providers.youtube:122:
Fetching YouTube results for "Loving Caliber - You Set My World on Fire (Rogan Gold Remix) lyrics" at "https://www.youtube.com/results?sp=EgIQAQ%253D%253D&q=Loving%20Caliber%20-%20You%20Set%20My%20World%20on%20Fire%20%28Rogan%20Gold%20Remix%29%20lyrics".

DEBUG:spotdl.metadata.providers.youtube:127:
Retrying since YouTube returned invalid response for search results. Retries left: 3.

DEBUG:spotdl.metadata.providers.youtube:122:
Fetching YouTube results for "Loving Caliber - You Set My World on Fire (Rogan Gold Remix) lyrics" at "https://www.youtube.com/results?sp=EgIQAQ%253D%253D&q=Loving%20Caliber%20-%20You%20Set%20My%20World%20on%20Fire%20%28Rogan%20Gold%20Remix%29%20lyrics".

DEBUG:spotdl.metadata.providers.youtube:127:
Retrying since YouTube returned invalid response for search results. Retries left: 2.

DEBUG:spotdl.metadata.providers.youtube:122:
Fetching YouTube results for "Loving Caliber - You Set My World on Fire (Rogan Gold Remix) lyrics" at "https://www.youtube.com/results?sp=EgIQAQ%253D%253D&q=Loving%20Caliber%20-%20You%20Set%20My%20World%20on%20Fire%20%28Rogan%20Gold%20Remix%29%20lyrics".

DEBUG:spotdl.metadata.providers.youtube:127:
Retrying since YouTube returned invalid response for search results. Retries left: 1.

DEBUG:spotdl.metadata.providers.youtube:122:
Fetching YouTube results for "Loving Caliber - You Set My World on Fire (Rogan Gold Remix) lyrics" at "https://www.youtube.com/results?sp=EgIQAQ%253D%253D&q=Loving%20Caliber%20-%20You%20Set%20My%20World%20on%20Fire%20%28Rogan%20Gold%20Remix%29%20lyrics".

ERROR:spotdl.command_line.core:223:
YouTube returned no videos for the search query "Loving Caliber - You Set My World on Fire (Rogan Gold Remix) lyrics".

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
ritiekcommented, Jul 11, 2020

@valedd You can hack the search query option in your config.yml if you don’t want “lyrics” to automatically get appended.

On Sat, 11 Jul, 2020, 5:04 PM valedd, notifications@github.com wrote:

Hello i received the same error today 07/11/2020

"ERROR: YouTube returned no videos for the search query “Robbie Williams - Let Me Entertain You lyrics”

i think the developer of spotify DB start to append the word “lyrics” to every song and when the script try to search the song youtube can’t match the result and we receive this kind of error.

Thanks in advance for some answer and the script too

[image: Capture22] https://user-images.githubusercontent.com/31632276/87223193-21949200-c37b-11ea-90ae-24c6aa6b1786.JPG

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/ritiek/spotify-downloader/issues/774#issuecomment-657050072, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE27U5XSXYKA5CH2S6J7SF3R3BE5NANCNFSM4OMW2O7Q .

1reaction
s1as3rcommented, Oct 23, 2020

Seems like You’re using spotdl v2. V2 is no longer in active development. Please use spotdl V3 and if the issue still persists, open a new Issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

YouTube's testing out Courses, multiple audio tracks, and ...
Just type in your query using the 'Search in video' feature ... could help make Courses and other videos on YouTube more accessible...
Read more >
YouTube Data API - Errors | Google Developers
The following tables identify error messages that the API returns in response to ... A video can have multiple tracks for the same...
Read more >
Spotify search API - how much do I need to clean the search ...
I'm trying to see if Spotify has a song from a YouTube video. This is the URL template I use to make the...
Read more >
Search History - YouTube
Keep track of what you watch Watch history isn't viewable when signed out. Learn more · Sign in. History type. Watch history.
Read more >
Reference — ytmusicapi 0.7.0 documentation
Search YouTube music Returns up to 20 results within the provided category. ... about an artist and their top releases (songs, albums, singles...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found