ITADN

[Bug report]: Errors when trying to get the tracks of some playlists

#340Closedrobtekky 创建于 2026-02-02
apitriage
R
robtekkycommented
**Describe the bug** For some playlists (not all of them), the call to get the tracks of the playlist fails. **To Reproduce** I have 1000+ playlists, and it happens on 89 of them. All of them have tracks associated. **Expected behavior** No error should happen, even in playlists having no tracks associated. **If ytmapi_rs: Provide the source json file that caused the error** n/a **If ytmapi_rs: Provide a screenshot of the YouTube Music page that shows the result you expected** For instance, I get the following error on one of the playlists: `Key /contents/twoColumnBrowseResultsRenderer/secondaryContents/sectionListRenderer/contents/0/musicPlaylistShelfRenderer/contents/0/musicResponsiveListItemRenderer/flexColumns/2/musicResponsiveListItemFlexColumnRenderer/text/runs/0/text not found in Api response. ` It seems the error is identical across all failing playlists. **Environment (please complete the following information):** - OS/distro: Artix linux - Crate: ytmapi_rs - Version: ytmapi-rs/0.2.4 **Additional context** An excerpt of what I am doing, including the Error branch: ``` let query = ytmapi_rs::query::GetPlaylistTracksQuery::new((&playlist_id).into()); match yt.stream(&query).try_collect::<Vec<_>>().await { Ok(_pages) => { // let total_tracks: usize = pages.iter().map(|page| page.len()).sum(); // println!("SUCCESS: Total tracks in playlist: {}", total_tracks); } Err(err) => { // eprintln!("FAILED: Playlist {:?} -> {:?}", playlist_id, err); failed_playlists.push(PlaylistTrackFailure { id: playlist_id, name: playlist_name, error: err.to_string(), description: None, }); } } ```
关闭于 2026-02-07 8 条评论