mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-10-29 18:00:15 +00:00
CLI optimizations
This commit is contained in:
@@ -22,7 +22,7 @@ class ProviderSpotify(ProviderBase):
|
||||
|
||||
def from_query(self, query):
|
||||
tracks = self.spotify.search(query, limit=1)["tracks"]["items"]
|
||||
if tracks is None:
|
||||
if not tracks:
|
||||
raise SpotifyMetadataNotFoundError(
|
||||
'Could not find any tracks matching the given search query ("{}")'.format(
|
||||
query,
|
||||
|
||||
Reference in New Issue
Block a user