[Bug report]: GetLibraryPlaylistsQuery does not return all playlists in very large libraries
apitriage
**Describe the bug**
I am getting an incomplete result when using GetLibraryPlaylistsQuery.
My library contains more than 1000 playlists (confirmed manually in the YouTube Music web interface), but the iterator returned by yt.stream(&GetLibraryPlaylistsQuery) consistently finishes before returning all existing playlists.
Typically around 19–20 playlists are missing.
**To Reproduce**
Unfortunately I cannot provide a reliable reproduction because it seems to depend on having a very large playlist library.
This is more or less what I am doing in my code:
```
let playlists_pages = yt.stream(&GetLibraryPlaylistsQuery);
while let Some(page) = playlists_pages.next().await {
for pl in page? {
do_processing(pl);
}
}
// iterator exhausted normally
```
I have checked that the iterator is exhausted because I can see the last iteration is producing 0 playlists.
**Expected behavior**
All created/existing playlists should be returned, no matter how many of those exist.
**If ytmapi_rs: Provide the source json file that caused the error**
No parsing error occurs.
The iterator finishes normally and returns None, but the resulting playlist list is incomplete.
**If ytmapi_rs: Provide a screenshot of the YouTube Music page that shows the result you expected**
n/a
**Environment (please complete the following information):**
- OS/distro: linux/CachyOS
- Crate: ytmapi_rs
- Version: 0.3.2
**Additional context**
The iterator completes normally (no error is returned).
The final page is empty, so it appears pagination has finished successfully.
The missing playlists definitely exist and are visible in the YouTube Music web interface.
Total playlists according to web UI: 1037
Returned by API: 1018
I am using browser-cookie authentication.
关闭于 5 天前 5 条评论