Fixed show_album example to retrieve album data. This example was

mistakenly fetching and displaying artist information.
This commit is contained in:
Jesse Ward 2016-06-13 01:10:45 -04:00
parent 5bf72e9ab9
commit e0daaefab6

View File

@ -1,5 +1,5 @@
# shows artist info for a URN or URL
# shows album info for a URN or URL
import spotipy
import sys
@ -8,10 +8,9 @@ import pprint
if len(sys.argv) > 1:
urn = sys.argv[1]
else:
urn = 'spotify:artist:3jOstUTkEu2JkjvRdBA5Gu'
urn = 'spotify:album:5yTx83u3qerZF7GRJu7eFk'
sp = spotipy.Spotify()
artist = sp.artist(urn)
pprint.pprint(artist)
album = sp.album(urn)
pprint.pprint(album)