-
Notifications
You must be signed in to change notification settings - Fork 112
Open
Description
When running spotify_to_tidal --sync-favorites
, I get this error:
HTTP error on 400
Adding new tracks to Tidal favorites: 0%| | 0/1947 [00:00<?, ?it/s]
Traceback (most recent call last):
File "/home/migwell/Programming/spotify_to_tidal/.venv/bin/spotify_to_tidal", line 8, in <module>
sys.exit(main())
~~~~^^
File "/home/migwell/Programming/spotify_to_tidal/src/spotify_to_tidal/__main__.py", line 42, in main
_sync.sync_favorites_wrapper(spotify_session, tidal_session, config)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/migwell/Programming/spotify_to_tidal/src/spotify_to_tidal/sync.py", line 355, in sync_favorites_wrapper
asyncio.run(main=sync_favorites(spotify_session=spotify_session, tidal_session=tidal_session, config=config))
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/migwell/.local/share/uv/python/cpython-3.13.1-linux-x86_64-gnu/lib/python3.13/asyncio/runners.py", line 194, in run
return runner.run(main)
~~~~~~~~~~^^^^^^
File "/home/migwell/.local/share/uv/python/cpython-3.13.1-linux-x86_64-gnu/lib/python3.13/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "/home/migwell/.local/share/uv/python/cpython-3.13.1-linux-x86_64-gnu/lib/python3.13/asyncio/base_events.py", line 720, in run_until_complete
return future.result()
~~~~~~~~~~~~~^^
File "/home/migwell/Programming/spotify_to_tidal/src/spotify_to_tidal/sync.py", line 345, in sync_favorites
tidal_session.user.favorites.add_track(tidal_id)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
File "/home/migwell/Programming/spotify_to_tidal/.venv/lib/python3.13/site-packages/tidalapi/user.py", line 240, in add_track
return self.requests.request(
~~~~~~~~~~~~~~~~~~~~~^
"POST", f"{self.base_url}/tracks", data={"trackId": track_id}
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
).ok
^
File "/home/migwell/Programming/spotify_to_tidal/.venv/lib/python3.13/site-packages/tidalapi/request.py", line 142, in request
request.raise_for_status()
~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/home/migwell/Programming/spotify_to_tidal/.venv/lib/python3.13/site-packages/requests/models.py", line 1026, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: for url: https://api.tidal.com/v1/users/222222222/favorites/tracks?sessionId=7c354e9d-843d-4fe6-b4ed-3142fc34a6e8&countryCode=AU&limit=1000
I've replaced my real user ID with 222222222.
Looks like maybe the Tidal API changed?
Metadata
Metadata
Assignees
Labels
No labels