Ultrasonics is running on a docker container with a self hosted api container and is syncing plex to spotify.
It is unable to find very easily searchable songs from Queen, David Bowie and Run the Jewels
Searching Spotify for songs from ❤️❤️❤️❤️❤️: 11%|█ | 27/242 [00:09<01:19, 2.71it/s]2022-10-13 15:52:24,912 - 🎧 spotify mixer - DEBUG - Could not find song “Heroes” in Spotify. (up_spotify mixer.py:384)
Searching Spotify for songs from ❤️❤️❤️❤️❤️: 12%|█▏ | 28/242 [00:10<01:30, 2.36it/s]2022-10-13 15:52:25,313 - 🎧 spotify mixer - DEBUG - Could not find song Life on Mars? in Spotify. (up_spotify mixer.py:384)
Searching Spotify for songs from ❤️❤️❤️❤️❤️: 12%|█▏ | 29/242 [00:10<01:28, 2.40it/s]2022-10-13 15:52:25,840 - 🎧 spotify mixer - DEBUG - Could not find song Let’s Dance in Spotify. (up_spotify mixer.py:384)
Searching Spotify for songs from ❤️❤️❤️❤️❤️: 75%|███████▌ | 182/242 [01:10<00:25, 2.35it/s]2022-10-13 15:53:25,486 - 🎧 spotify mixer - DEBUG - Could not find song Bohemian Rhapsody in Spotify. (up_spotify mixer.py:384)
Searching Spotify for songs from ❤️❤️❤️❤️❤️: 76%|███████▌ | 183/242 [01:10<00:25, 2.33it/s]2022-10-13 15:53:26,034 - 🎧 spotify mixer - DEBUG - Could not find song Seven Seas of Rhye in Spotify. (up_spotify mixer.py:384)
Searching Spotify for songs from ❤️❤️❤️❤️❤️: 82%|████████▏ | 199/242 [01:18<00:19, 2.20it/s]2022-10-13 15:53:33,823 - 🎧 spotify mixer - DEBUG - Could not find song Yankee and the Brave (ep. 4) in Spotify. (up_spotify mixer.py:384)
Searching Spotify for songs from ❤️❤️❤️❤️❤️: 83%|████████▎ | 200/242 [01:19<00:18, 2.23it/s]2022-10-13 15:53:34,264 - 🎧 spotify mixer - DEBUG - Could not find song Out of Sight in Spotify. (up_spotify mixer.py:384)
Searching Spotify for songs from ❤️❤️❤️❤️❤️: 83%|████████▎ | 201/242 [01:19<00:18, 2.24it/s]2022-10-13 15:53:34,707 - 🎧 spotify mixer - DEBUG - Could not find song Walking in the Snow in Spotify. (up_spotify mixer.py:384)
Searching Spotify for songs from ❤️❤️❤️❤️❤️: 83%|████████▎ | 202/242 [01:20<00:17, 2.25it/s]2022-10-13 15:53:35,216 - 🎧 spotify mixer - DEBUG - Could not find song A Few Words for the Firing Squad (Radiation) in Spotify. (up_spotify mixer.py:384)
Searching Spotify for songs from ❤️❤️❤️❤️❤️: 84%|████████▍ | 203/242 [01:20<00:18, 2.15it/s]2022-10-13 15:53:35,624 - 🎧 spotify mixer - DEBUG - Could not find song Run the Jewels in Spotify. (up_spotify mixer.py:384)
Searching Spotify for songs from ❤️❤️❤️❤️❤️: 84%|████████▍ | 204/242 [01:20<00:17, 2.23it/s]2022-10-13 15:53:36,102 - 🎧 spotify mixer - DEBUG - Could not find song Close Your Eyes (and Count to Fuck) in Spotify. (up_spotify mixer.py:384)
I have tried lowering the fuzziness all the way down to 50 and its still happening.
The other bug I have encountered was a full error. It always happens on this particular song.
Searching Spotify for songs from ❤️❤️❤️❤️❤️: 91%|█████████ | 220/242 [01:27<00:08, 2.53it/s]
Searching Spotify for songs from ❤️❤️❤️❤️❤️: 91%|█████████▏| 221/242 [01:27<00:09, 2.21it/s]HTTP Error for GET to https://api.spotify.com/v1/search with Params: {'q': 'track:I Love You Like an Alcoholic album:God, Forgive These Bastards: Songs From the Forgotten Life of Henry Turner', 'limit': 10, 'offset': 0, 'type': 'track', 'market': None} returned 400 due to Bad request.
2022-10-13 15:53:42,477 - 🎧 spotify mixer - ERROR - http status: 400, code:-1 - https://api.spotify.com/v1/search?q=track%3AI+Love+You+Like+an+Alcoholic+album%3AGod%2C+Forgive+These+Bastards%3A+Songs+From+the+Forgotten+Life+of+Henry+Turner&limit=10&offset=0&type=track:
Bad request., reason: None (up_spotify mixer.py:192)
2022-10-13 15:53:42,477 - 🎧 spotify mixer - DEBUG - Fetching your Spotify token (up_spotify mixer.py:105)
2022-10-13 15:53:42,478 - 🎧 spotify mixer - DEBUG - Returning renewed token (up_spotify mixer.py:117)
2022-10-13 15:53:42,848 - 🎧 spotify mixer - INFO - Requesting a new Spotify token, this may take a few seconds... (up_spotify mixer.py:158)
Searching Spotify for songs from ❤️❤️❤️❤️❤️: 91%|█████████▏| 221/242 [01:28<00:08, 2.50it/s]
2022-10-13 15:53:43,001 - plugins - ERROR - 'access_token' (plugins.py:291)
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 245, in _internal_call
response.raise_for_status()
File "/usr/local/lib/python3.8/site-packages/requests/models.py", line 953, 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=track%3AI+Love+You+Like+an+Alcoholic+album%3AGod%2C+Forgive+These+Bastards%3A+Songs+From+the+Forgotten+Life+of+Henry+Turner&limit=10&offset=0&type=track
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/ultrasonics/official_plugins/up_spotify mixer.py", line 188, in request
return sp_func(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 553, in search
return self._get(
File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 297, in _get
return self._internal_call("GET", url, payload, kwargs)
File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 267, in _internal_call
raise SpotifyException(
spotipy.exceptions.SpotifyException: http status: 400, code:-1 - https://api.spotify.com/v1/search?q=track%3AI+Love+You+Like+an+Alcoholic+album%3AGod%2C+Forgive+These+Bastards%3A+Songs+From+the+Forgotten+Life+of+Henry+Turner&limit=10&offset=0&type=track:
Bad request., reason: None
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/ultrasonics/plugins.py", line 279, in applet_run
songs_dict = plugin_run(
File "/ultrasonics/plugins.py", line 162, in plugin_run
response = found_plugins[name].run(
File "/ultrasonics/official_plugins/up_spotify mixer.py", line 376, in run
spotify_id, confidence = s.search(song)
File "/ultrasonics/official_plugins/up_spotify mixer.py", line 276, in search
results = self.request(self.sp.search, query)
File "/ultrasonics/official_plugins/up_spotify mixer.py", line 193, in request
self.sp = spotipy.Spotify(auth=self.token_get(force=True))
File "/ultrasonics/official_plugins/up_spotify mixer.py", line 118, in token_get
return self.token_renew()
File "/ultrasonics/official_plugins/up_spotify mixer.py", line 165, in token_renew
token = resp.json()["access_token"]
KeyError: 'access_token'
2022-10-13 15:53:43,005 - plugins - WARNING - Applet 208bf0b2-4a68-11ed-970f-0242ac110010 failed in 0:03:10.412419 (plugins.py:299)
2022-10-13 15:53:43,012 - database - INFO - Applet lastrun updated (database.py:377)
Ultrasonics is running on a docker container with a self hosted api container and is syncing plex to spotify.
It is unable to find very easily searchable songs from Queen, David Bowie and Run the Jewels
I have tried lowering the fuzziness all the way down to 50 and its still happening.
The other bug I have encountered was a full error. It always happens on this particular song.