fixed requiremenets.txt

This commit is contained in:
klein panic
2024-10-25 23:04:25 -04:00
parent 855fdfd414
commit cb3af6ac5b
3 changed files with 17 additions and 14 deletions

View File

@@ -1,8 +1,15 @@
psutil async-timeout==4.0.3
python-mpv certifi==2024.8.30
curses-menu charset-normalizer==3.4.0
pymediainfo curses-menu==0.9.0
mutagen idna==3.10
pillow mutagen==1.47.0
spotipy pillow==11.0.0
python-dotenv psutil==6.1.0
pymediainfo==6.1.0
python-dotenv==1.0.1
python-mpv==1.0.7
redis==5.2.0
requests==2.32.3
spotipy==2.24.0
urllib3==2.2.3

View File

@@ -189,27 +189,23 @@ class MediaDashboardApp:
self.draw_tiling() self.draw_tiling()
def main_loop(self): def main_loop(self):
# Main loop to keep the screen updated
while True: while True:
key = self.stdscr.getch() key = self.stdscr.getch()
# Break out of loop if keypress handler requests it
if self.handle_keypress(key): if self.handle_keypress(key):
break break
# Periodically check playback status
if self.monocle_mode and self.active_window is not None: if self.monocle_mode and self.active_window is not None:
module = self.windows[self.active_window] module = self.windows[self.active_window]
if module and hasattr(module, 'check_playback_status'): if module and hasattr(module, 'check_playback_status'):
module.check_playback_status() module.check_playback_status()
# Redraw based on current mode
if self.monocle_mode: if self.monocle_mode:
self.draw_monocle() self.draw_monocle()
else: else:
self.draw_tiling() self.draw_tiling()
time.sleep(0.1) # Adjust for responsiveness time.sleep(0.1)
def main(stdscr): def main(stdscr):
app = MediaDashboardApp(stdscr) app = MediaDashboardApp(stdscr)

View File

@@ -38,7 +38,7 @@ class RadioPlayer:
window.box() window.box()
height, width = window.getmaxyx() height, width = window.getmaxyx()
# Title # Title
title = "Internet Radio" title = "RadioPlayer"
window.addstr(1, (width - len(title)) // 2, title, curses.A_BOLD) window.addstr(1, (width - len(title)) // 2, title, curses.A_BOLD)
# Display current station # Display current station