From db8eb4e60fe72c65704505b8ccc0f68b44cb22fc Mon Sep 17 00:00:00 2001 From: Timothy Rae Date: Thu, 22 Jul 2021 00:53:31 +1200 Subject: [PATCH] Reduce chunk size when writing playlists to avoid potential errors? --- sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sync.py b/sync.py index 9d50a02..cbcd932 100755 --- a/sync.py +++ b/sync.py @@ -87,7 +87,7 @@ def set_tidal_playlist(session, playlist_id, track_ids): # erases any items in the given playlist, then adds all of the tracks given in track_ids # had to hack this together because the API doesn't include it - chunk_size = 25 # add/delete tracks in chunks of no more than this many tracks + chunk_size = 20 # add/delete tracks in chunks of no more than this many tracks request_params = { 'sessionId': session.session_id, 'countryCode': session.country_code,