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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user