This commit is contained in:
2025-01-10 15:48:36 -07:00
parent a279fc4923
commit 00d4b17125
13 changed files with 109 additions and 45 deletions

View File

@@ -13,6 +13,10 @@ except:
sys.exit(1)
from gi.repository import Playerctl, GLib
from gi.events import GLibEventLoopPolicy
import asyncio
asyncio.set_event_loop_policy(GLibEventLoopPolicy())
title_maxlen = 40
title_end_at = ["(", "-"]
@@ -56,8 +60,8 @@ class StatusDisplay:
def show(self):
self._init_player()
main = GLib.MainLoop()
main.run()
loop = asyncio.get_event_loop()
loop.run_forever()
def _get_status(self, playing=None):
if self._player: