Skip to content

Commit

Permalink
Use reset_title() to reset title after stop/pause
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Aug 30, 2023
1 parent 7b1aeae commit 6469631
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plextraktsync/watch/WatchStateUpdater.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,14 @@ def scrobble(self, m: Media, percent: float, event: PlaySessionStateNotification
if state == "paused":
if self.progressbar is not None:
self.progressbar.pause(m.plex, percent)
self.clear_window_title()
self.reset_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()
self.reset_title()

value = self.scrobblers[tm].stop(percent)
del self.scrobblers[tm]
Expand Down

0 comments on commit 6469631

Please sign in to comment.