spotframework/main.py

36 lines
992 B
Python
Raw Normal View History

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
import spotframework.io.json as json
2019-02-27 21:42:21 +00:00
if __name__ == '__main__':
print('hello world')
# data = json.loadJson('.spot/config.json')
# print(data)
2019-06-11 11:59:24 +01:00
network = networkclass.Network(userclass.User())
2019-04-30 21:41:38 +01:00
# tracks = network.getPlaylistTracks("76ynkbkyc4uq11u1FcpOyG")
# print(tracks[0])
# network.setVolume(105)
# 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()
# playlists = network.getUserPlaylists()
# for playlist in playlists:
# print(playlist.name + ' ' + playlist.playlistid)