AppWorld Spotify: inspect show_song before per-song date filtering
When filtering library/playlist songs by release year, do not guess
show_song response fields.
Rules
show_song_libraryandshow_playlist_libraryreturn song IDs without the per-song release date; callshow_songfor each song.- Inspect one sample
show_songresponse before writing the loop:
print(apis.spotify.show_song(song_id=<sample_id>))
- Do not assume fields such as
album_title. A sample may containalbum_idbut noalbum_title. - Access only keys observed in the sample and documented keys such as
album_idandrelease_date. - If a loop raises
KeyErrorfor a guessed key, re-inspect the sample and switch to the actual keys before rerunning the full loop.
Verification
Before answering, confirm the per-song loop used keys that are present in a
printed sample response. If any KeyError occurred, verify the replacement
keys appear in the sample.