2019-02-27 22:45:53 +00:00
|
|
|
import spotframework.net.user as userclass
|
|
|
|
import spotframework.net.playlist as playlist
|
2019-02-27 21:42:21 +00:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
print('hello world')
|
2019-02-27 22:45:53 +00:00
|
|
|
|
|
|
|
user = userclass.User()
|
2019-02-27 21:42:21 +00:00
|
|
|
|
2019-02-27 22:45:53 +00:00
|
|
|
playlists = playlist.getPlaylists(user)
|
|
|
|
|
2019-02-27 23:05:44 +00:00
|
|
|
#for playlister in playlists:
|
|
|
|
#print(playlister['name'])
|
2019-02-27 22:45:53 +00:00
|
|
|
|
2019-02-27 23:05:44 +00:00
|
|
|
print(playlists[0])
|
|
|
|
#print(len(playlists))
|
|
|
|
|
|
|
|
print(user.username)
|
|
|
|
|
|
|
|
moreplaylists = playlist.getUserPlaylists(user)
|
|
|
|
print(len(moreplaylists))
|