diff --git a/example_config.yml b/example_config.yml index 46de46c..dec820b 100644 --- a/example_config.yml +++ b/example_config.yml @@ -13,3 +13,7 @@ spotify: # uncomment this block if you want to sync all playlists in the account with some exceptions #excluded_playlists: # - spotify:playlist:1ABCDEqsABCD6EaABCDa0a + +# number of concurrent subprocesses when searching tracks in a playlist. +# increasing this value can improve sync speed, but may increase 429 errors +subprocesses: 25 diff --git a/src/spotify_to_tidal/sync.py b/src/spotify_to_tidal/sync.py index eda9381..c8fcb99 100755 --- a/src/spotify_to_tidal/sync.py +++ b/src/spotify_to_tidal/sync.py @@ -234,7 +234,7 @@ def sync_playlist(spotify_session: spotipy.Spotify, tidal_session: tidalapi.Sess return task_description = "Searching Tidal for {}/{} tracks in Spotify playlist '{}'".format(len(spotify_tracks) - cache_hits, len(spotify_tracks), spotify_playlist['name']) - tidal_tracks = call_async_with_progress(tidal_search, spotify_tracks, task_description, config.get('subprocesses', 50), tidal_session=tidal_session) + tidal_tracks = call_async_with_progress(tidal_search, spotify_tracks, task_description, config.get('subprocesses', 25), tidal_session=tidal_session) for index, tidal_track in enumerate(tidal_tracks): spotify_track = spotify_tracks[index][0] if tidal_track: