From a2e62ea20d3ae667f71da916ed268fb245b4aa61 Mon Sep 17 00:00:00 2001 From: Tim Rae Date: Mon, 3 Jun 2024 22:30:45 +0200 Subject: [PATCH] Fix error due to missing type --- src/spotify_to_tidal/sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spotify_to_tidal/sync.py b/src/spotify_to_tidal/sync.py index fefe220..9a1de2a 100755 --- a/src/spotify_to_tidal/sync.py +++ b/src/spotify_to_tidal/sync.py @@ -154,7 +154,7 @@ async def repeat_on_request_error(function, *args, remaining=5, **kwargs): time.sleep(sleep_schedule.get(remaining, 1)) return await repeat_on_request_error(function, *args, remaining=remaining-1, **kwargs) -async def get_tracks_from_spotify_playlist(spotify_session: spotipy.Spotify, spotify_playlist: t_spotify.SpotifyPlaylist): +async def get_tracks_from_spotify_playlist(spotify_session: spotipy.Spotify, spotify_playlist): def _get_tracks_from_spotify_playlist(offset: int, spotify_session: spotipy.Spotify, playlist_id: str): fields="next,total,limit,items(track(name,album(name,artists),artists,track_number,duration_ms,id,external_ids(isrc)))" return spotify_session.playlist_tracks(playlist_id, fields, offset=offset)