Skip to content

Commit ec516f5

Browse files
committed
autoformat
1 parent 0a38991 commit ec516f5

File tree

2 files changed

+18
-20
lines changed

2 files changed

+18
-20
lines changed

mpv_history_daemon/daemon.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,21 @@
3131

3232

3333
KNOWN_EVENTS = {
34-
"socket-added", # custom event, for when the socket was added
35-
"mpv-quit",
36-
"playlist-count",
37-
"is-paused",
38-
"eof",
39-
"seek",
40-
"paused",
41-
"resumed",
42-
"metadata",
43-
"duration",
44-
"playlist-pos",
45-
"media-title",
46-
"path",
47-
"working-directory",
48-
"final-write", # custom event, for when the dead/dangling socket was removed, and file was written
34+
"socket-added", # custom event, for when the socket was added
35+
"mpv-quit",
36+
"playlist-count",
37+
"is-paused",
38+
"eof",
39+
"seek",
40+
"paused",
41+
"resumed",
42+
"metadata",
43+
"duration",
44+
"playlist-pos",
45+
"media-title",
46+
"path",
47+
"working-directory",
48+
"final-write", # custom event, for when the dead/dangling socket was removed, and file was written
4949
}
5050

5151

mpv_history_daemon/events.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ def _read_event_stream(
185185
REQUIRED_KEYS = {"playlist_pos", "start_time", "path"}
186186

187187
IGNORED_EVENTS: set[EventType] = {
188-
"playlist",
189-
"playlist-count",
188+
"playlist",
189+
"playlist-count",
190190
}
191191

192192

@@ -449,9 +449,7 @@ def _reconstruct_event_stream(
449449
pause_duration = pause_duration + (
450450
most_recent_time - pause_start_time
451451
)
452-
logger.debug(
453-
f"slightly broken, but yielding anyways... {media_data}"
454-
)
452+
logger.debug(f"slightly broken, but yielding anyways... {media_data}")
455453
media_data["end_time"] = most_recent_time
456454
media_data["pause_duration"] = pause_duration
457455
media_data["actions"] = actions

0 commit comments

Comments
 (0)