platers / unitunes

A GUI and library to transfer, sync, and backup playlists on music streaming services
GNU General Public License v3.0
130 stars 12 forks source link

SpotifyException: spotipy.exceptions.SpotifyException #10

Closed pushp1997 closed 2 years ago

pushp1997 commented 2 years ago

When I try to search YTMusic's playlist on Spotify as: unitunes search spotify 'Your Likes'

I get the following exception:
....
    raise SpotifyException(
spotipy.exceptions.SpotifyException: http status: 404, code:-1 - https://api.spotify.com/v1/search?q=track%3A%22value%3D%27Me+%26+My+Friends+%28feat.+Fortune%29%27+aliases%3D%5B%5D%22+artist%3A%22Munn+%26+Jude.%22+album%3A%22Me+%26+My+Friends+%28feat.+fortune%29%22&limit=5&offset=0&type=track:
 Not found., reason: None
  3%|████                                                                                                                                                 | 17/619 [00:03<02:15,  4.43it/s]

I guess, if the song is not found on Spotify then this exception gets raised and if so, then the exception should be caught as sound not found and continue the search for next songs in the playlist.

If that's not it, then please help get the error solved. Thanks for the great tool, cheers!