"YouTube returned no videos for the search query" for most tracks
See original GitHub issueDescription
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:
- Created 3 years ago
- Reactions:2
- Comments:13 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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:
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.