projects
/
music-assistant-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09d0cf9
)
adjust example
author
Marcel van der Veldt
<m.vanderveldt@outlook.com>
Wed, 6 Jul 2022 14:54:29 +0000
(16:54 +0200)
committer
Marcel van der Veldt
<m.vanderveldt@outlook.com>
Wed, 6 Jul 2022 14:54:29 +0000
(16:54 +0200)
examples/full.py
patch
|
blob
|
history
diff --git
a/examples/full.py
b/examples/full.py
index 8cb30dde8d6f7d31678373343b320cdd48c25563..2cf8e3aa88e455a32a779b3dfac257868bbb74ea 100644
(file)
--- a/
examples/full.py
+++ b/
examples/full.py
@@
-223,8
+223,9
@@
async def main():
# we can also send an uri, such as spotify://track/abcdfefgh
# or database://playlist/1
# or a list of items
- artist = await mass.music.artists.get("2", ProviderType.DATABASE)
- await test_player1.active_queue.play_media(artist)
+ if playlist_count > 0:
+ playlist = await mass.music.playlists.get("1", ProviderType.DATABASE)
+ await test_player1.active_queue.play_media(playlist)
await asyncio.sleep(3600)