MarshalX / yandex2spotify

Simple Python script that allow to import music from Yandex.Music to Spotify
https://yandex-music.rtfd.io
MIT License
228 stars 24 forks source link

Exception on api call #34

Closed korjavin closed 1 year ago

korjavin commented 2 years ago
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://api.spotify.com/v1/search?q=Little+Richard%2C+Jimmy+Rogers%2C+Bobby+Darin%2C+Joey+Dee%2C+The+Starliters%2C+Jerry+Lee+Lewis+Tutti+Frutti+%2F+Honeycomb+%2F+Multiplication+%2F+Peppermint+Twist+%2F+What+I+Say+%2F+Roll+over+Beethoven+%2F+Oh%2C+Lonesome+Me+%2F+Wake+up+Little+Suzie+%2F+At+the+Hop+%2F+Walking+Back+to+Happiness+%2F+Along+Came+Jones&limit=10&offset=0&type=track
MarshalX commented 1 year ago

track/artist name of some track is incredibly long. if it fails the whole script pls reopen