Update tidal_client.py
This commit is contained in:
parent
c3f4055418
commit
05c2cd7320
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue