Episodes and unavailable items crash sorting and duplication #13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Spotify playlist items are a union of tracks and episodes. The track pointer is also
nilwhen content is unavailable in the selected market.GroupTracksByArtist(), with further unchecked dereferences in album grouping, track sorting, and reordering.FilterLocalTracks()retains non-local episodes and unavailable items.AddTracksToPlaylist()subsequently dereferences their nil track pointer.In the duplication flow, the destination playlist has already been created before this panic, so the failure can leave an unwanted empty playlist behind.
Focused probes confirmed that an episode panics in artist grouping and that both an episode and an unavailable item survive
FilterLocalTracks.