player: log last DLNA URL to /tmp/dlna_last_url.txt on play(); tests: auto-load it in diagnostic script

This commit is contained in:
Matteo Benedetto
2026-03-23 23:50:11 +01:00
parent 79a1c9a78c
commit 6715f4b227
2 changed files with 16 additions and 1 deletions
@@ -299,6 +299,11 @@ class GStreamerBackend(PlayerBackend):
self._set_playing(True, notify=False)
self._event_callback("buffering", 100)
log.info("Starting SDL-rendered GStreamer playback: %s", url)
try:
with open("/tmp/dlna_last_url.txt", "w") as _f:
_f.write(url + "\n")
except OSError:
pass
def stop(self) -> None:
with self._lock: