From b3af8f282652b14d2f5dd1c16d84d35b0b2b90c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 30 Aug 2023 22:36:46 +0300 Subject: [PATCH] Update window title when playing/stopping --- plextraktsync/watch/WatchStateUpdater.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plextraktsync/watch/WatchStateUpdater.py b/plextraktsync/watch/WatchStateUpdater.py index 0a7cc23d7a..35db17b66d 100644 --- a/plextraktsync/watch/WatchStateUpdater.py +++ b/plextraktsync/watch/WatchStateUpdater.py @@ -157,18 +157,21 @@ def scrobble(self, m: Media, percent: float, event: PlaySessionStateNotification if state == "playing": if self.progressbar is not None: self.progressbar.play(m.plex, percent) + self.set_window_title(f"Watching {m.title}") return self.scrobblers[tm].update(percent) if state == "paused": if self.progressbar is not None: self.progressbar.pause(m.plex, percent) + self.clear_window_title() return self.scrobblers[tm].pause(percent) if state == "stopped": if self.progressbar is not None: self.progressbar.stop(m.plex) + self.clear_window_title() value = self.scrobblers[tm].stop(percent) del self.scrobblers[tm]