If the URL is found to contain "album" it will poll Spotipy for the tracks in that album. Those tracks will then be added to the tracks list. The order of the matches are maintained.
Used item['external_urls']['spotify'] to keep a steady format for the tracks list. Could use item['id'] for brevity and more consistency.
If the URL is found to contain "album" it will poll Spotipy for the tracks in that album. Those tracks will then be added to the tracks list. The order of the matches are maintained. Used
item['external_urls']['spotify']
to keep a steady format for the tracks list. Could useitem['id']
for brevity and more consistency.