went back to working on the first verison, fixed queue updating on main screen + weird footer bug

This commit is contained in:
JISAUAY committed 2025-09-04 15:30:01 -05:00
1 parent 4c1f5bfe82
commit a07ee3bd52
6 files changed
+1018 -993

No files matched your search

+2 -1
View File
@@ -157,12 +157,13 @@ class MusicApp(App):
if song_id:
self.play_song(song_id)
# Needs to be in the main thread so pause / play work
# TODO @0x01fe put stream https call into thread?
@work(exclusive=True)
async def play_song(self, song_id: str) -> None:
try:
song = conn.getSong(song_id)
now_playing = self.query_one(NowPlaying)
# self.call_from_thread(NowPlaying.update_song, now_playing, song)
now_playing.update_song(song)
stream_data = conn.stream(song_id)