From bdd3828596c1123149a4d07b2e057163dcee090e Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Tue, 3 Jun 2025 20:47:27 +0300 Subject: [PATCH] Update nodes.py --- ATI/nodes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ATI/nodes.py b/ATI/nodes.py index fee5a6f..6b94355 100644 --- a/ATI/nodes.py +++ b/ATI/nodes.py @@ -111,12 +111,12 @@ def parse_json_tracks(tracks): # If tracks is a string, try to parse it as JSON if isinstance(tracks, str): parsed = json.loads(tracks.replace("'", '"')) - tracks_data.append(parsed) + tracks_data.extend(parsed) else: # If tracks is a list of strings, parse each one for track_str in tracks: parsed = json.loads(track_str.replace("'", '"')) - tracks_data.append(parsed) + tracks_data.extend(parsed) # Check if we have a single track (dict with x,y) or a list of tracks if tracks_data and isinstance(tracks_data[0], dict) and 'x' in tracks_data[0]: