From e0daaefab6fc143a78e8b28500f08a783ccf486e Mon Sep 17 00:00:00 2001 From: Jesse Ward Date: Mon, 13 Jun 2016 01:10:45 -0400 Subject: [PATCH] Fixed show_album example to retrieve album data. This example was mistakenly fetching and displaying artist information. --- examples/show_album.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/examples/show_album.py b/examples/show_album.py index 2ec7b8f..e492b3c 100644 --- a/examples/show_album.py +++ b/examples/show_album.py @@ -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)