diff --git a/requirements.txt b/requirements.txt index 3ca40d6..d2b5924 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,15 @@ -psutil -python-mpv -curses-menu -pymediainfo -mutagen -pillow -spotipy -python-dotenv +async-timeout==4.0.3 +certifi==2024.8.30 +charset-normalizer==3.4.0 +curses-menu==0.9.0 +idna==3.10 +mutagen==1.47.0 +pillow==11.0.0 +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 diff --git a/src/main.py b/src/main.py index 5b382e2..71d3096 100644 --- a/src/main.py +++ b/src/main.py @@ -189,27 +189,23 @@ class MediaDashboardApp: self.draw_tiling() def main_loop(self): - # Main loop to keep the screen updated while True: key = self.stdscr.getch() - # Break out of loop if keypress handler requests it if self.handle_keypress(key): break - # Periodically check playback status if self.monocle_mode and self.active_window is not None: module = self.windows[self.active_window] if module and hasattr(module, 'check_playback_status'): module.check_playback_status() - # Redraw based on current mode if self.monocle_mode: self.draw_monocle() else: self.draw_tiling() - time.sleep(0.1) # Adjust for responsiveness + time.sleep(0.1) def main(stdscr): app = MediaDashboardApp(stdscr) diff --git a/src/radio_player.py b/src/radio_player.py index 47dc766..b2a8406 100644 --- a/src/radio_player.py +++ b/src/radio_player.py @@ -38,7 +38,7 @@ class RadioPlayer: window.box() height, width = window.getmaxyx() # Title - title = "Internet Radio" + title = "RadioPlayer" window.addstr(1, (width - len(title)) // 2, title, curses.A_BOLD) # Display current station