We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c06589 commit 54bff67Copy full SHA for 54bff67
app/spotify/service.py
@@ -84,21 +84,3 @@ def get_devices_count(self) -> int:
84
def __get_devices_from_api(self) -> list[Device]:
85
devices_json = self.__api.devices()["devices"]
86
return [Device(**device) for device in devices_json]
87
-
88
89
90
-if __name__ == "__main__":
91
- import os
92
93
- SPOTIFY_CLIENT_ID = "f194ec87794e4505ace8cb76a65b37df"
94
- SPOTIFY_CLIENT_SECRET = "324b3a763f704dbeb0764f9e2bf8d53a"
95
96
- service = SpotifyService(
97
- client_id=SPOTIFY_CLIENT_ID,
98
- client_secret=SPOTIFY_CLIENT_SECRET,
99
- redirect_uri="http://localhost:8080"
100
- )
101
102
- print(service.get_devices())
103
104
- service.play(Track(id="2bqS0QtnXGjOYs3z6VtSyW"))
0 commit comments