mirror of
https://github.com/kleinpanic/Media-Tui.git
synced 2025-10-27 15:05:33 -04:00
fixed requiremenets.txt
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user