mirror of
https://github.com/spartanz51/tutabridge.git
synced 2026-06-24 10:54:32 +02:00
Replace the silent `min(limit, 1000)` cap with proper pagination: the server rejects a single `load_range` count > 1000, so for any user-facing `sync_limit` above that we now loop 1000-entry pages, advancing the cursor with the last (oldest in DESC) entry's element id, until we have the requested count or the list is exhausted. `limit == 0` still delegates to `load_all`, which already paginates the whole list. Honors what the user typed (1050 means 1050, not 1000).