From 05c2cd7320ace2c75ec4c36302df81be6bd0c1a1 Mon Sep 17 00:00:00 2001 From: Broque Thomas Date: Fri, 16 Jan 2026 11:48:50 -0800 Subject: [PATCH] Update tidal_client.py --- core/tidal_client.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/tidal_client.py b/core/tidal_client.py index e0e16876..68fcfe33 100644 --- a/core/tidal_client.py +++ b/core/tidal_client.py @@ -757,10 +757,11 @@ class TidalClient: total_fetched += len(batch_tracks) logger.info(f"Fetched {len(batch_tracks)} tracks in this batch, {total_fetched} total so far") - # Get next cursor using PR #113's approach (confirmed working) + # Get next cursor from Tidal's response + # Tidal uses: links.meta.nextCursor (confirmed by PR #113) cursor = tracks_page.get("links", {}).get("meta", {}).get("nextCursor") - # If no cursor found, we're done paginating + # If no cursor found, pagination is complete if not cursor: logger.info("No next cursor found, pagination complete") break