From efc639367bb20984ab65d06540ce543e38c792b2 Mon Sep 17 00:00:00 2001 From: Erica Z Date: Sat, 26 Oct 2024 11:28:36 +0200 Subject: [PATCH] clear mpris metadata on stop --- src/mpris.vala | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mpris.vala b/src/mpris.vala index d68cd2d..8243845 100644 --- a/src/mpris.vala +++ b/src/mpris.vala @@ -140,6 +140,10 @@ class MprisPlayer : Object { this.metadata = metadata; }); + playbin.stopped.connect (() => { + this.metadata = new HashTable (null, null); + }); + this.on_next.connect (() => playbin.go_to_next_track ()); this.on_previous.connect (() => playbin.go_to_prev_track ()); this.on_play.connect (() => playbin.play ());