2019-02-27 22:45:53 +00:00
|
|
|
import spotframework.net.user as userclass
|
2019-04-30 16:10:41 +01:00
|
|
|
import spotframework.net.network as networkclass
|
|
|
|
import spotframework.net.network as playlist
|
2019-02-27 21:42:21 +00:00
|
|
|
|
2019-05-14 20:41:12 +01:00
|
|
|
import spotframework.io.json as json
|
|
|
|
|
2019-02-27 21:42:21 +00:00
|
|
|
if __name__ == '__main__':
|
|
|
|
print('hello world')
|
|
|
|
|
2019-06-28 10:50:59 +01:00
|
|
|
# data = json.loadJson('.spot/config.json')
|
2019-02-27 22:45:53 +00:00
|
|
|
|
2019-05-14 20:41:12 +01:00
|
|
|
# print(data)
|
2019-05-14 12:39:17 +01:00
|
|
|
|
2019-06-11 11:59:24 +01:00
|
|
|
network = networkclass.Network(userclass.User())
|
2019-04-30 21:41:38 +01:00
|
|
|
|
2019-05-14 20:41:12 +01:00
|
|
|
# tracks = network.getPlaylistTracks("76ynkbkyc4uq11u1FcpOyG")
|
2019-05-14 13:55:51 +01:00
|
|
|
|
2019-05-14 20:41:12 +01:00
|
|
|
# print(tracks[0])
|
2019-05-14 13:55:51 +01:00
|
|
|
|
2019-05-14 20:41:12 +01:00
|
|
|
# network.setVolume(105)
|
2019-05-14 13:55:51 +01:00
|
|
|
|
2019-05-14 20:41:12 +01:00
|
|
|
# network.getPlaylist('000Eh2vXzYGgrEFlgcWZj3')
|
|
|
|
#
|
|
|
|
# playlist = network.makePlaylist('new playlist')
|
|
|
|
#
|
|
|
|
# network.addPlaylistTracks(playlist.playlistid, ["spotify:track:78lC4VmDVSSsCUQ0VNdQva"]*149)
|
|
|
|
#
|
|
|
|
# network.replacePlaylistTracks(playlist.playlistid, ["spotify:track:78lC4VmDVSSsCUQ0VNdQva"] * 160)
|
|
|
|
#
|
|
|
|
# network.pause()
|
2019-05-14 13:29:40 +01:00
|
|
|
|
2019-05-07 23:16:04 +01:00
|
|
|
#network.getPlayer()
|
|
|
|
|
2019-05-14 12:39:17 +01:00
|
|
|
# playlists = network.getUserPlaylists()
|
|
|
|
# for playlist in playlists:
|
|
|
|
# print(playlist.name + ' ' + playlist.playlistid)
|