diff options
| author | Arslaan Pathan <[email protected]> | 2026-10-06 11:26:45 +1300 |
|---|---|---|
| committer | Arslaan Pathan <[email protected]> | 2026-10-06 11:26:45 +1300 |
| commit | 2799880278cbd24210d4c869baf5f9c4f737196d (patch) | |
| tree | c569ea34ad5f1abfd2e7965c75f6dd34bab5583d | |
| parent | 47d23851bea97603a171d821266b197566cb9acd (diff) | |
| download | remote-automation-2799880278cbd24210d4c869baf5f9c4f737196d.tar.xz remote-automation-2799880278cbd24210d4c869baf5f9c4f737196d.zip | |
stop before fav
| -rw-r--r-- | backend.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -145,6 +145,10 @@ def voldown(): @app.get("/automate/music/fav") def fav_song(): global music_process + if music_process and music_process.poll() is None: + music_process.terminate() + music_process = None + music_process = subprocess.Popen([ "mpv", "--no-video", |
