fix player

This commit is contained in:
j 2023-11-09 00:32:32 +01:00
parent c2e6fcc173
commit 206183f5da
4 changed files with 5 additions and 4 deletions

View file

@ -8,4 +8,4 @@ KillSignal=SIGINT
ExecStart=/srv/pandora/t_for_time/player/player.py --mode peer --playlist /srv/t_for_time/render/back.m3u
[Install]
WantedBy=default.target
WantedBy=graphical-session.target

View file

@ -8,4 +8,4 @@ KillSignal=SIGINT
ExecStart=/srv/pandora/t_for_time/player/player.py --mode main --playlist /srv/t_for_time/render/front.m3u
[Install]
WantedBy=default.target
WantedBy=graphical-session.target

View file

@ -80,7 +80,8 @@ class Sync(Thread):
if self._tick and abs(time.time() - self._tick) > 60:
logger.error("player is stuck")
self._tick = 0
self.quit()
self.stop()
self.mpv.stop()
def q_binding(self, *args):
self.stop()

View file

@ -8,4 +8,4 @@ ExecStart=/usr/bin/mpv --quiet --loop /srv/t_for_time/render/Saxophone-5.1.mp4
KillSignal=SIGINT
[Install]
WantedBy=default.target
WantedBy=graphical-session.target