mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-10-10 17:00:46 +00:00
remove unneccesary whitespaces, shorten some lines, and add name to contibutors
This commit is contained in:
1 parent
43a4de0314
commit
d8d9f290fb
8 files changed
+48
-44
No files matched your search
@@ -35,7 +35,7 @@ def show_artist_albums(id):
|
||||
unique = set() # skip duplicate albums
|
||||
for album in albums:
|
||||
name = album['name'].lower()
|
||||
if not name in unique:
|
||||
if not name in unique:
|
||||
print(name)
|
||||
unique.add(name)
|
||||
show_album_tracks(album)
|
||||
|
||||
@@ -10,7 +10,7 @@ if len(sys.argv) > 2:
|
||||
username = sys.argv[1]
|
||||
tids = sys.argv[2:]
|
||||
else:
|
||||
print("Usage: %s username track-id ..." % (sys.argv[0],))
|
||||
print("Usage: %s username track-id ..." % (sys.argv[0],))
|
||||
sys.exit()
|
||||
|
||||
token = util.prompt_for_user_token(username, scope)
|
||||
|
||||
@@ -26,6 +26,6 @@ if token:
|
||||
for i, item in enumerate(results['items']):
|
||||
print (i, item['name'], '//', item['artists'][0]['name'])
|
||||
print ()
|
||||
|
||||
|
||||
else:
|
||||
print("Can't get token for", username)
|
||||
@@ -60,4 +60,4 @@ if __name__ == '__main__':
|
||||
import sys
|
||||
title = ' '.join(sys.argv[1:])
|
||||
make_chain(sys.argv[1].lower())
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Gets all the public playlists for the given
|
||||
# user. Uses Client Credentials flow
|
||||
#
|
||||
#
|
||||
|
||||
import sys
|
||||
import spotipy
|
||||
|
||||
Reference in new issue
Block a user