Skip to content

Commit 4a2e763

Browse files
committed
💬 print player
1 parent ec8c5f7 commit 4a2e763

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/badapple/play.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,8 @@ def play(
8989
else:
9090
y += 1
9191

92-
print('[%d:%d %.2lfHz] -> [%d:%d %.2lfHz] %.3lfs' %
93-
(width, height, rate, x, y, rate / mo, duration), flush=True)
94-
# [1444:1080 29.97Hz] -> [72:54 9.99Hz] 232.065s
92+
print('[%d:%d %.2lfHz] -%s-> [%d:%d %.2lfHz] %.3lfs' % (width, height, rate, p.name if p else '', x, y, rate / mo, duration), flush=True)
93+
# [1444:1080 29.97Hz] -ffplay-> [72:54 9.99Hz] 232.065s
9594

9695
rewind, clear, console_size = get_func(need_clear)
9796
fnt = Font(font)

src/badapple/replay.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def replay(
1919
y = int(y)
2020
clk = float(clk) / 1000.0
2121

22-
print('[%d:%d %.2lfHz replay]' % (x, y, 1.0/clk))
22+
print('[%d:%d %.2lfHz ] -%s-> [replay]' % (x, y, 1.0/clk, p.name if p else ''))
2323

2424
rewind, clear, console_size = get_func(need_clear)
2525

0 commit comments

Comments
 (0)