Try printing a timestamp when the movie is paused.

This commit is contained in:
Grace Lovelace 2022-04-04 15:05:54 -07:00
parent e4322e1093
commit f146107903
No known key found for this signature in database
GPG Key ID: 59ABC62BC58C6A4F
2 changed files with 2 additions and 2 deletions

View File

@ -360,7 +360,7 @@ class SyncplayClient(object):
self._player.setPaused(True) self._player.setPaused(True)
madeChangeOnPlayer = True madeChangeOnPlayer = True
if (self.lastLeftTime < time.time() - constants.OSD_DURATION) or hideFromOSD == True: if (self.lastLeftTime < time.time() - constants.OSD_DURATION) or hideFromOSD == True:
self.ui.showMessage(getMessage("pause-notification").format(setBy), hideFromOSD) self.ui.showMessage(getMessage("pause-notification").format(setBy, self.getGlobalPosition()), hideFromOSD)
else: else:
self.ui.showMessage(getMessage("left-paused-notification").format(self.lastLeftUser, setBy), hideFromOSD) self.ui.showMessage(getMessage("left-paused-notification").format(self.lastLeftUser, setBy), hideFromOSD)
return madeChangeOnPlayer return madeChangeOnPlayer

View File

@ -23,7 +23,7 @@ en = {
"slowdown-notification": "Slowing down due to time difference with {}", # User "slowdown-notification": "Slowing down due to time difference with {}", # User
"revert-notification": "Reverting speed back to normal", "revert-notification": "Reverting speed back to normal",
"pause-notification": "{} paused", # User "pause-notification": "{} paused at {}", # User
"unpause-notification": "{} unpaused", # User "unpause-notification": "{} unpaused", # User
"seek-notification": "{} jumped from {} to {}", # User, from time, to time "seek-notification": "{} jumped from {} to {}", # User, from time, to time