mirror of
https://github.com/c0de-archive/spotipy.git
synced 2024-11-05 07:27:47 +00:00
Fixed show_album example to retrieve album data. This example was
mistakenly fetching and displaying artist information.
This commit is contained in:
parent
5bf72e9ab9
commit
e0daaefab6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user