old playlist imports
This commit is contained in:
@@ -91,4 +91,15 @@ class Spotify():
|
||||
r.raise_for_status()
|
||||
return r.json()
|
||||
|
||||
def get_playlist_info(self, playlist_id):
|
||||
token = self.get_system_token()
|
||||
url = 'https://api.spotify.com/v1/playlists/' + playlist_id
|
||||
headers = {
|
||||
'Content-Type': 'application/json',
|
||||
'Authorization': 'Bearer ' + token
|
||||
}
|
||||
r = requests.get(url, headers=headers)
|
||||
r.raise_for_status()
|
||||
return r.json()
|
||||
|
||||
spt = Spotify()
|
||||
Reference in New Issue
Block a user