Reduce default num subprocesses

The recent caching changes seem to have worsened the situation for me
This commit is contained in:
Tim Rae
2024-05-20 17:22:10 +02:00
committed by Tim Rae
parent 42ddaff7b9
commit bc75fbf779
2 changed files with 5 additions and 1 deletions

View File

@@ -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

View File

@@ -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: