Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print timestamp when pausing. #521

Merged
merged 4 commits into from
Apr 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion syncplay/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def _serverPaused(self, setBy):
self._player.setPaused(True)
madeChangeOnPlayer = 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, utils.formatTime(self.getGlobalPosition())), hideFromOSD)
else:
self.ui.showMessage(getMessage("left-paused-notification").format(self.lastLeftUser, setBy), hideFromOSD)
return madeChangeOnPlayer
Expand Down
2 changes: 1 addition & 1 deletion syncplay/messages_de.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"slowdown-notification": "Verlangsamt wegen Zeitdifferenz mit {}", # User
"revert-notification": "Normalgeschwindigkeit",

"pause-notification": "{} pausierte", # User
"pause-notification": "{} pausierte ({})", # User
"unpause-notification": "{} startete", # User
"seek-notification": "{} sprang von {} nach {}", # User, from time, to time

Expand Down
2 changes: 1 addition & 1 deletion syncplay/messages_en.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"slowdown-notification": "Slowing down due to time difference with {}", # User
"revert-notification": "Reverting speed back to normal",

"pause-notification": "{} paused", # User
"pause-notification": "{} paused ({})", # User
"unpause-notification": "{} unpaused", # User
"seek-notification": "{} jumped from {} to {}", # User, from time, to time

Expand Down
2 changes: 1 addition & 1 deletion syncplay/messages_es.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"slowdown-notification": "Ralentizando debido a diferencia de tiempo con {}", # User
"revert-notification": "Revirtiendo a la velocidad normal",

"pause-notification": "{} pausado", # User
"pause-notification": "{} pausado ({})", # User
"unpause-notification": "{} resumido", # User
"seek-notification": "{} saltó desde {} hasta {}", # User, from time, to time

Expand Down
2 changes: 1 addition & 1 deletion syncplay/messages_fr.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"slowdown-notification": "Ralentissement dû au décalage de temps avec {}", # User
"revert-notification": "Retour à la vitesse normale",

"pause-notification": "{} en pause", # User
"pause-notification": "{} en pause ({})", # User
"unpause-notification": "{} non suspendu", # User
"seek-notification": "{} est passé de {} à {}", # User, from time, to time

Expand Down
2 changes: 1 addition & 1 deletion syncplay/messages_it.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"slowdown-notification": "Rallento a causa della differenza temporale con {}", # User
"revert-notification": "Ripristino la velocità di riproduzione normale",

"pause-notification": "{} ha messo in pausa", # User
"pause-notification": "{} ha messo in pausa ({})", # User
"unpause-notification": "{} ha ripreso la riproduzione", # User
"seek-notification": "{} è passato da {} a {}", # User, from time, to time

Expand Down
2 changes: 1 addition & 1 deletion syncplay/messages_pt_BR.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"slowdown-notification": "Diminuindo a velocidade devido à diferença de tempo com {}", # User
"revert-notification": "Revertendo velocidade ao normal",

"pause-notification": "{} pausou", # User
"pause-notification": "{} pausou ({})", # User
"unpause-notification": "{} despausou", # User
"seek-notification": "{} saltou de {} para {}", # User, from time, to time

Expand Down
2 changes: 1 addition & 1 deletion syncplay/messages_pt_PT.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"slowdown-notification": "Diminuindo a velocidade devido à diferença de tempo com {}", # User
"revert-notification": "Revertendo velocidade ao normal",

"pause-notification": "{} pausou", # User
"pause-notification": "{} pausou ({})", # User
"unpause-notification": "{} despausou", # User
"seek-notification": "{} saltou de {} para {}", # User, from time, to time

Expand Down
2 changes: 1 addition & 1 deletion syncplay/messages_ru.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"slowdown-notification": "Воспроизведение замедлено из-за разницы во времени с {}", # User
"revert-notification": "Возвращаемся к нормальной скорости воспроизведения",

"pause-notification": "{} приостановил воспроизведение", # User
"pause-notification": "{} приостановил воспроизведение ({})", # User
"unpause-notification": "{} возобновил воспроизведение", # User
"seek-notification": "{} перемотал с {} на {}", # User, from time, to time

Expand Down
2 changes: 1 addition & 1 deletion syncplay/messages_tr.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"slowdown-notification": "{} ile zaman farkı nedeniyele nedeniyle yavaşlıyor", # User
"revert-notification": "Hızı normale döndürülüyor",

"pause-notification": "{} duraklattı", # User
"pause-notification": "{} duraklattı ({})", # User
"unpause-notification": "{} devam ettirdi", # User
"seek-notification": "{}, {} konumundan {} konumuna atladı", # User, from time, to time

Expand Down
2 changes: 1 addition & 1 deletion syncplay/messages_zh_CN.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"slowdown-notification": "与{}不同步,正在慢速播放", # User
"revert-notification": "播放速度恢复一倍速",

"pause-notification": "{}暂停了", # User
"pause-notification": "{}暂停了 ({})", # User
"unpause-notification": "{}重新开始播放", # User
"seek-notification": "{}从{}跳转到{}", # User, from time, to time

Expand Down