fix player
This commit is contained in:
parent
c2e6fcc173
commit
206183f5da
4 changed files with 5 additions and 4 deletions
|
@ -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
|
ExecStart=/srv/pandora/t_for_time/player/player.py --mode peer --playlist /srv/t_for_time/render/back.m3u
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=default.target
|
WantedBy=graphical-session.target
|
||||||
|
|
|
@ -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
|
ExecStart=/srv/pandora/t_for_time/player/player.py --mode main --playlist /srv/t_for_time/render/front.m3u
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=default.target
|
WantedBy=graphical-session.target
|
||||||
|
|
|
@ -80,7 +80,8 @@ class Sync(Thread):
|
||||||
if self._tick and abs(time.time() - self._tick) > 60:
|
if self._tick and abs(time.time() - self._tick) > 60:
|
||||||
logger.error("player is stuck")
|
logger.error("player is stuck")
|
||||||
self._tick = 0
|
self._tick = 0
|
||||||
self.quit()
|
self.stop()
|
||||||
|
self.mpv.stop()
|
||||||
|
|
||||||
def q_binding(self, *args):
|
def q_binding(self, *args):
|
||||||
self.stop()
|
self.stop()
|
||||||
|
|
|
@ -8,4 +8,4 @@ ExecStart=/usr/bin/mpv --quiet --loop /srv/t_for_time/render/Saxophone-5.1.mp4
|
||||||
KillSignal=SIGINT
|
KillSignal=SIGINT
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=default.target
|
WantedBy=graphical-session.target
|
||||||
|
|
Loading…
Reference in a new issue